mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Destroy buffer to avoid leaking a path watch
This commit is contained in:
parent
ce82439420
commit
ac84a8ab0a
@ -143,6 +143,10 @@ describe 'Buffer', ->
|
|||||||
waitsFor "file to be removed", (done) ->
|
waitsFor "file to be removed", (done) ->
|
||||||
bufferToDelete.file.one 'remove', done
|
bufferToDelete.file.one 'remove', done
|
||||||
|
|
||||||
|
|
||||||
|
afterEach ->
|
||||||
|
bufferToDelete.destroy()
|
||||||
|
|
||||||
it "retains its path and reports the buffer as modified", ->
|
it "retains its path and reports the buffer as modified", ->
|
||||||
expect(bufferToDelete.getPath()).toBe path
|
expect(bufferToDelete.getPath()).toBe path
|
||||||
expect(bufferToDelete.isModified()).toBeTruthy()
|
expect(bufferToDelete.isModified()).toBeTruthy()
|
||||||
|
Loading…
Reference in New Issue
Block a user