mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
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.
This commit is contained in:
@@ -136,14 +136,6 @@ describe "TextEditorPresenter", ->
|
||||
# clearing additional rows won't trigger a state update
|
||||
expectNoStateUpdate presenter, -> presenter.clearScreenRowsToMeasure()
|
||||
|
||||
expect(stateFn(presenter).tiles[0]).toBeDefined()
|
||||
expect(stateFn(presenter).tiles[2]).toBeDefined()
|
||||
expect(stateFn(presenter).tiles[4]).toBeDefined()
|
||||
expect(stateFn(presenter).tiles[6]).toBeDefined()
|
||||
expect(stateFn(presenter).tiles[8]).toBeUndefined()
|
||||
expect(stateFn(presenter).tiles[10]).toBeDefined()
|
||||
expect(stateFn(presenter).tiles[12]).toBeDefined()
|
||||
|
||||
# when another change triggers a state update we remove useless lines
|
||||
expectStateUpdate presenter, -> presenter.setScrollTop(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user