Skip to content

Commit 5b4e5e9

Browse files
committed
test: use CanvasDrawer.drawHighlightOutlineDecoration
1 parent f7659e6 commit 5b4e5e9

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
@@ -430,7 +430,7 @@ describe('MinimapElement', () => {
430430
})
431431

432432
it('renders the visible outline decorations', () => {
433-
spyOn(minimapElement, 'drawHighlightOutlineDecoration').andCallThrough()
433+
spyOn(minimapElement.CanvasDrawer, 'drawHighlightOutlineDecoration').andCallThrough()
434434

435435
minimap.decorateMarker(editor.markBufferRange([[1, 4], [3, 6]]), { type: 'highlight-outline', color: '#0000ff' })
436436
minimap.decorateMarker(editor.markBufferRange([[6, 0], [6, 7]]), { type: 'highlight-outline', color: '#0000ff' })
@@ -444,8 +444,8 @@ describe('MinimapElement', () => {
444444
runs(() => {
445445
nextAnimationFrame()
446446

447-
expect(minimapElement.drawHighlightOutlineDecoration).toHaveBeenCalled()
448-
expect(minimapElement.drawHighlightOutlineDecoration.calls.length).toEqual(4)
447+
expect(minimapElement.CanvasDrawer.drawHighlightOutlineDecoration).toHaveBeenCalled()
448+
expect(minimapElement.CanvasDrawer.drawHighlightOutlineDecoration.calls.length).toEqual(4)
449449
})
450450
})
451451

0 commit comments

Comments
 (0)