diff --git a/spec/text-editor-component-spec.coffee b/spec/text-editor-component-spec.coffee index 1e2b6cee5..1d1780438 100644 --- a/spec/text-editor-component-spec.coffee +++ b/spec/text-editor-component-spec.coffee @@ -2344,7 +2344,7 @@ describe "TextEditorComponent", -> nextAnimationFrame() expect(component.lineNodeForScreenRow(0).textContent).toBe " a line with tabs and spaces " - it "re-renders the invisibles for the when the invisible settings change", -> + it "re-renders the invisibles when the invisible settings change", -> jsGrammar = editor.getGrammar() editor.setGrammar(coffeeEditor.getGrammar()) atom.config.set '.source.coffee', 'editor.showInvisibles', true diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 5805eee64..e8a73fc87 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -3038,7 +3038,7 @@ describe "TextEditor", -> atom.workspace.open(null, softTabs: false).then (editor) -> expect(editor.getSoftTabs()).toBeFalsy() - describe '.getTabLength(scopeDescriptor)', -> + describe '.getTabLength()', -> describe 'when scoped settings are used', -> coffeeEditor = null beforeEach -> @@ -3061,7 +3061,7 @@ describe "TextEditor", -> coffeeEditor.setCursorBufferPosition [0, 10] expect(coffeeEditor.getTabLength(coffeeEditor.scopesAtCursor())).toBe 4 - it 'will retokenize when the tab length is updated via .setTabLength()', -> + it 'retokenizes when the tab length is updated via .setTabLength()', -> expect(editor.getTabLength()).toBe 2 expect(editor.tokenizedLineForScreenRow(5).tokens[0].firstNonWhitespaceIndex).toBe 2 @@ -3069,7 +3069,7 @@ describe "TextEditor", -> expect(editor.getTabLength()).toBe 6 expect(editor.tokenizedLineForScreenRow(5).tokens[0].firstNonWhitespaceIndex).toBe 6 - it 'will retokenize when the editor.tabLength setting is updated', -> + it 'retokenizes when the editor.tabLength setting is updated', -> expect(editor.getTabLength()).toBe 2 expect(editor.tokenizedLineForScreenRow(5).tokens[0].firstNonWhitespaceIndex).toBe 2 @@ -3077,7 +3077,7 @@ describe "TextEditor", -> expect(editor.getTabLength()).toBe 6 expect(editor.tokenizedLineForScreenRow(5).tokens[0].firstNonWhitespaceIndex).toBe 6 - it 'will update the tab length when the grammar changes', -> + it 'updates the tab length when the grammar changes', -> atom.config.set '.source.coffee', 'editor.tabLength', 6 expect(editor.getTabLength()).toBe 2