mirror of
https://github.com/electron/electron.git
synced 2026-02-12 16:15:06 -05:00
Assert windows are not leaking across tests
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user