Skip to content

Commit 06fef22

Browse files
committed
test: use CanvasDrawer.drawLines
1 parent 3affc42 commit 06fef22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/minimap-element-spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ describe('MinimapElement', () => {
562562
runs(() => {
563563
nextAnimationFrame()
564564

565-
spyOn(minimapElement, 'drawLines').andCallThrough()
565+
spyOn(minimapElement.CanvasDrawer, 'drawLines').andCallThrough()
566566
editor.insertText('foo')
567567
})
568568
})
@@ -574,9 +574,9 @@ describe('MinimapElement', () => {
574574
runs(() => {
575575
nextAnimationFrame()
576576

577-
expect(minimapElement.drawLines).toHaveBeenCalled()
577+
expect(minimapElement.CanvasDrawer.drawLines).toHaveBeenCalled()
578578

579-
const [firstLine, lastLine] = minimapElement.drawLines.argsForCall[0]
579+
const [firstLine, lastLine] = minimapElement.CanvasDrawer.drawLines.argsForCall[0]
580580

581581
// These tests are very flaky, depending on Atom's version the
582582
// measured values can changed so we have

0 commit comments

Comments
 (0)