From 4f7b9e03c86edcd37446fc71b345c747cb15bcfc Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 13 Dec 2016 17:28:54 -0800 Subject: [PATCH] Expect a single leading whitespace token w/ atomic soft tabs & indent guides disabled Signed-off-by: Nathan Sobo --- spec/text-editor-component-spec.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/spec/text-editor-component-spec.js b/spec/text-editor-component-spec.js index 8fc608782..5f73ed45f 100644 --- a/spec/text-editor-component-spec.js +++ b/spec/text-editor-component-spec.js @@ -700,13 +700,9 @@ describe('TextEditorComponent', function () { runAnimationFrames() let line2LeafNodes = getLeafNodes(component.lineNodeForScreenRow(2)) - expect(line2LeafNodes.length).toBe(3) - expect(line2LeafNodes[0].textContent).toBe(' ') + expect(line2LeafNodes.length).toBe(1) + expect(line2LeafNodes[0].textContent).toBe(' ') expect(line2LeafNodes[0].classList.contains('indent-guide')).toBe(false) - expect(line2LeafNodes[1].textContent).toBe(' ') - expect(line2LeafNodes[1].classList.contains('indent-guide')).toBe(false) - expect(line2LeafNodes[2].textContent).toBe(' ') - expect(line2LeafNodes[2].classList.contains('indent-guide')).toBe(false) }) })