Assert windows are not leaking across tests

This commit is contained in:
Kevin Sawicki 2016-11-29 10:56:17 -08:00
parent fb74f5576d
commit 217848ca52

View file

@ -82,7 +82,10 @@ describe('browser-window module', function () {
}) })
afterEach(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 () { describe('BrowserWindow.close()', function () {