Call destroy on the synchronous repo.

This commit is contained in:
joshaber
2015-12-02 11:22:40 -05:00
parent 36604141b9
commit db7a3063e9

View File

@@ -366,7 +366,8 @@ describe('GitRepositoryAsync-js', () => {
it('stops listening to the buffer when the repository is destroyed (regression)', async () => {
const editor = await atom.workspace.open('other.txt')
repository.destroy()
const repo = atom.project.getRepositories()[0]
repo.destroy()
expect(() => editor.save()).not.toThrow()
})
})