Skip to content

Commit 3d8058a

Browse files
author
Nathan Sobo
committed
Remove failing redundant assertions
The expectNoStateUpdate is sufficient to test the issue in question. Now that most flags are removed, we can’t count on this part of the state not being updated when we request a state recompilation.
1 parent 20e8856 commit 3d8058a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

spec/text-editor-presenter-spec.coffee

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,6 @@ describe "TextEditorPresenter", ->
136136
# clearing additional rows won't trigger a state update
137137
expectNoStateUpdate presenter, -> presenter.clearScreenRowsToMeasure()
138138

139-
expect(stateFn(presenter).tiles[0]).toBeDefined()
140-
expect(stateFn(presenter).tiles[2]).toBeDefined()
141-
expect(stateFn(presenter).tiles[4]).toBeDefined()
142-
expect(stateFn(presenter).tiles[6]).toBeDefined()
143-
expect(stateFn(presenter).tiles[8]).toBeUndefined()
144-
expect(stateFn(presenter).tiles[10]).toBeDefined()
145-
expect(stateFn(presenter).tiles[12]).toBeDefined()
146-
147139
# when another change triggers a state update we remove useless lines
148140
expectStateUpdate presenter, -> presenter.setScrollTop(1)
149141

0 commit comments

Comments
 (0)