mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
15 lines
449 B
JavaScript
15 lines
449 B
JavaScript
describe('Dock', () => {
|
|
describe('when a pane in a dock is activated', () => {
|
|
it('opens the dock', () => {
|
|
const item = {
|
|
getDefaultLocation() { return 'left' }
|
|
}
|
|
|
|
atom.workspace.open(item, {activatePane: false})
|
|
expect(atom.workspace.getLeftDock().isOpen()).toBe(false)
|
|
|
|
atom.workspace.getLeftDock().getPanes()[0].activate()
|
|
expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
|
|
})
|
|
})
|
|
}) |