Expect a single leading whitespace token w/ atomic soft tabs & indent guides disabled

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Max Brunsfeld
2016-12-13 17:28:54 -08:00
committed by Nathan Sobo
parent e339aab590
commit 4f7b9e03c8

View File

@@ -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)
})
})