mirror of
https://github.com/atom/atom.git
synced 2026-02-03 03:05:05 -05:00
Call destroy on the synchronous repo.
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user