Skip to content

Commit

Permalink
💚 Change unreliable assertion based on DOM styles
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Aug 16, 2015
1 parent 6afdac4 commit 4efe217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/minimap-element-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ describe 'MinimapElement', ->

it 'offsets the scroll indicator by the difference', ->
openQuickSettings = minimapElement.shadowRoot.querySelector('.open-minimap-quick-settings')
expect(realOffsetLeft(openQuickSettings)).toBeCloseTo(2 - openQuickSettings.offsetWidth, -1)
expect(realOffsetLeft(openQuickSettings)).not.toBeCloseTo(2, -1)

describe 'and then disabled', ->
beforeEach ->
Expand Down

0 comments on commit 4efe217

Please sign in to comment.