Skip to content

Commit

Permalink
💄 Clean async mess in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Feb 1, 2015
1 parent bbe60dd commit 9bae9f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/minimap-element-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,8 @@ describe 'MinimapElement', ->
editorElement.style.width = '800px'
editorElement.style.height = '500px'

runs ->
sleep(150)
runs -> nextAnimationFrame()
sleep(150)
runs -> nextAnimationFrame()

it 'detect the resize and adjust itself', ->
expect(minimapElement.offsetWidth).toBeCloseTo(editorElement.offsetWidth / 11, 0)
Expand Down

0 comments on commit 9bae9f8

Please sign in to comment.