Skip to content

Commit

Permalink
💚 Change the test to fit the 10% is 1/11
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Dec 15, 2014
1 parent a5b888c commit 1b007df
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 @@ -90,7 +90,7 @@ describe 'MinimapElement', ->

# Actually, when in a flex display of 200px width, 10% gives 18px
# and not 20px
expect(minimapElement.offsetWidth).toBeCloseTo(editorElement.clientWidth / 10, -1)
expect(minimapElement.offsetWidth).toBeCloseTo(editorElement.clientWidth / 11, 0)

it 'resizes the canvas to fit the minimap', ->
expect(canvas.offsetHeight).toEqual(minimapElement.offsetHeight + minimap.getLineHeight())
Expand Down

0 comments on commit 1b007df

Please sign in to comment.