Skip to content

Commit

Permalink
💄 Extract line count in a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Dec 12, 2014
1 parent 93651f2 commit 481a39e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/minimap-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ describe 'Minimap', ->
expect(minimap.getHeight()).toEqual(20)

editor.setText(largeSample)
expect(minimap.getHeight()).toEqual(editor.getLineCount() * 5)
largeLineCount = editor.getLineCount()
expect(minimap.getHeight()).toEqual(largeLineCount * 5)

it 'measures the scaling factor between the editor and the minimap', ->
expect(minimap.getScaleFactor()).toEqual(0.5)
Expand Down

0 comments on commit 481a39e

Please sign in to comment.