Skip to content

Commit

Permalink
✅ Add test for package deactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Jul 5, 2016
1 parent 3a627ec commit 7d1fdbd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/minimap-main-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ describe('Minimap package', () => {
it('attaches a minimap element to the editor view', () => {
expect(editorElement.shadowRoot.querySelector('atom-text-editor-minimap')).toExist()
})

describe('when the package is deactivated', () => {
beforeEach(() => {
atom.packages.deactivatePackage('minimap')
})
it('removes the minimap from their editor parent', () => {
expect(editorElement.shadowRoot.querySelector('atom-text-editor-minimap')).not.toExist()
})
})
})

describe('::observeMinimaps', () => {
Expand Down

0 comments on commit 7d1fdbd

Please sign in to comment.