From 43eef86ce1dd23c1b7653a85a9d1b33345b6dd60 Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Wed, 18 Dec 2024 16:20:16 -0800 Subject: [PATCH] =?UTF-8?q?[spell-check]=20Remove=20errant=20`console.log`?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …and clean up specs. --- packages/spell-check/lib/scope-helper.js | 1 - packages/spell-check/spec/.eslintrc.js | 17 ++++++++++------- packages/spell-check/spec/spell-check-spec.js | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/spell-check/lib/scope-helper.js b/packages/spell-check/lib/scope-helper.js index f43135e607..31c526ba7c 100644 --- a/packages/spell-check/lib/scope-helper.js +++ b/packages/spell-check/lib/scope-helper.js @@ -60,7 +60,6 @@ class ScopeSelector { enforceSegmentOrder: false, ...rawOptions, }; - console.log(this, 'matches', scopeDescriptorOrArray); let scopeList; if (Array.isArray(scopeDescriptorOrArray)) { scopeList = scopeDescriptorOrArray; diff --git a/packages/spell-check/spec/.eslintrc.js b/packages/spell-check/spec/.eslintrc.js index 5226d69213..fdc38d9ad2 100644 --- a/packages/spell-check/spec/.eslintrc.js +++ b/packages/spell-check/spec/.eslintrc.js @@ -1,9 +1,12 @@ module.exports = { - env: { jasmine: true }, - rules: { - "node/no-unpublished-require": "off", - "node/no-extraneous-require": "off", - "no-unused-vars": "off", - "no-empty": "off" - } + env: { jasmine: true }, + globals: { + advanceClock: true, + }, + rules: { + 'node/no-unpublished-require': 'off', + 'node/no-extraneous-require': 'off', + 'no-unused-vars': 'off', + 'no-empty': 'off', + }, }; diff --git a/packages/spell-check/spec/spell-check-spec.js b/packages/spell-check/spec/spell-check-spec.js index 50b4d4c749..37147971d0 100644 --- a/packages/spell-check/spec/spell-check-spec.js +++ b/packages/spell-check/spec/spell-check-spec.js @@ -751,6 +751,7 @@ class SpeledWrong {}` // These tests are only run on Macs because the CI for Windows doesn't have // spelling provided. if (env.isSystemSupported() && env.isDarwin()) { + let markers; describe('when using system checker plugin', function () { it('marks chzz as not a valid word but cheese is', async function () { atom.config.set('spell-check.useSystem', true); @@ -759,7 +760,6 @@ class SpeledWrong {}` await conditionPromise(() => { markers = getMisspellingMarkers(); - console.log(markers); return ( markers.length === 1 && markers[0].getBufferRange().start.column === 7 &&