diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index 08f5ce949..3c498410c 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -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 () {