diff --git a/spec/minimap-main-spec.js b/spec/minimap-main-spec.js index f51c9800..fb2681f5 100644 --- a/spec/minimap-main-spec.js +++ b/spec/minimap-main-spec.js @@ -2,6 +2,7 @@ import './helpers/workspace' import Minimap from '../lib/minimap' +import MinimapElement from '../lib/minimap-element' describe('Minimap package', () => { let [editor, minimap, editorElement, minimapElement, workspaceElement, minimapPackage] = [] @@ -12,6 +13,8 @@ describe('Minimap package', () => { workspaceElement = atom.views.getView(atom.workspace) jasmine.attachToDOM(workspaceElement) + MinimapElement.registerViewProvider(Minimap) + waitsForPromise(() => { return atom.workspace.open('sample.coffee') })