Make sure the editor disappears quickly.

This commit is contained in:
joshaber 2016-01-11 21:36:23 -05:00
parent 2f2a0763a2
commit c22a68435a

View File

@ -246,6 +246,10 @@ describe('GitRepositoryAsync', () => {
runs(() => editor = atom.workspace.getActiveTextEditor())
})
afterEach(() => {
editor = null
})
it('displays a confirmation dialog by default', async () => {
atom.confirm.andCallFake(({buttons}) => buttons.OK())
atom.config.set('editor.confirmCheckoutHeadRevision', true)