Skip to content

Commit

Permalink
test: export Minimap for the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 26, 2020
1 parent 126c62a commit c75ff20
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { deactivateAllPlugins } from './mixins/plugin-management'

export { config } from './config'
export * from './mixins/plugin-management'
export { default as Minimap } from './minimap'

/**
* The `Minimap` package provides an eagle-eye view of text buffers.
Expand Down
1 change: 0 additions & 1 deletion lib/minimap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use babel'
'use strict'

import include from './decorators/include'
Expand Down
2 changes: 1 addition & 1 deletion spec/minimap-element-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const fs = require('fs-plus')
const Main = require('../dist/main')
const Minimap = require('../lib/minimap')
const Minimap = Main.Minimap
const { styles } = require('./helpers/workspace')
const { mousemove, mousedown, mouseup, mousewheel, touchstart, touchmove } = require('./helpers/events')
require('jasmine-expect')
Expand Down
2 changes: 1 addition & 1 deletion spec/minimap-main-spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

require('./helpers/workspace')
const Minimap = require('../lib/minimap')
const { Minimap } = require('../dist/main')

describe('Minimap package', () => {
let [editor, minimap, editorElement, minimapElement, workspaceElement, minimapPackage] = []
Expand Down
2 changes: 1 addition & 1 deletion spec/minimap-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require('./helpers/workspace')

const fs = require('fs-plus')
const Minimap = require('../lib/minimap')
const { Minimap } = require('../dist/main')
require('jasmine-expect')

describe('Minimap', () => {
Expand Down

0 comments on commit c75ff20

Please sign in to comment.