mirror of
https://github.com/atom/atom.git
synced 2026-01-26 15:28:27 -05:00
add final buffer event spec
This commit is contained in:
@@ -372,15 +372,16 @@ describe('GitRepositoryAsync-js', () => {
|
||||
expect(statusHandler.callCount).toBe(1)
|
||||
})
|
||||
|
||||
// it('stops listening to the buffer when the repository is destroyed (regression)', () => {
|
||||
// waitsForPromise(() => {
|
||||
// atom.workspace.open('other.txt').then(o => editor = o)
|
||||
// })
|
||||
// runs(() => {
|
||||
// atom.project.getRepositories()[0].destroy()
|
||||
// expect(-> editor.save()).not.toThrow()
|
||||
// })
|
||||
// })
|
||||
it('stops listening to the buffer when the repository is destroyed (regression)', function () {
|
||||
let editor
|
||||
waitsForPromise(async function () {
|
||||
editor = await atom.workspace.open('other.txt')
|
||||
})
|
||||
runs(function () {
|
||||
atom.project.getRepositories()[0].destroy()
|
||||
expect(function () { editor.save() }).not.toThrow()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user