Skip to content

Commit f7659e6

Browse files
committed
test: use CanvasDrawer.drawHighlightDecoration
1 parent 93b6a29 commit f7659e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/minimap-element-spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ describe('MinimapElement', () => {
333333
spyOn(minimapElement.CanvasDrawer, 'drawLineDecoration').andCallFake((d) => {
334334
calls.push(d.getProperties().plugin)
335335
})
336-
spyOn(minimapElement, 'drawHighlightDecoration').andCallFake((d) => {
336+
spyOn(minimapElement.CanvasDrawer, 'drawHighlightDecoration').andCallFake((d) => {
337337
calls.push(d.getProperties().plugin)
338338
})
339339

@@ -410,7 +410,7 @@ describe('MinimapElement', () => {
410410
})
411411

412412
it('renders the visible highlight decorations', () => {
413-
spyOn(minimapElement, 'drawHighlightDecoration').andCallThrough()
413+
spyOn(minimapElement.CanvasDrawer, 'drawHighlightDecoration').andCallThrough()
414414

415415
minimap.decorateMarker(editor.markBufferRange([[1, 0], [1, 4]]), { type: 'highlight-under', color: '#0000FF' })
416416
minimap.decorateMarker(editor.markBufferRange([[2, 20], [2, 30]]), { type: 'highlight-over', color: '#0000FF' })

0 commit comments

Comments
 (0)