Assert windows are not leaking across tests
This commit is contained in:
parent
fb74f5576d
commit
217848ca52
1 changed files with 4 additions and 1 deletions
|
@ -82,7 +82,10 @@ describe('browser-window module', function () {
|
|||
})
|
||||
|
||||
afterEach(function () {
|
||||
return closeWindow(w).then(function () { w = null })
|
||||
return closeWindow(w).then(function () {
|
||||
w = null
|
||||
assert.equal(BrowserWindow.getAllWindows().length, 1)
|
||||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.close()', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue