From 317422f431b66c2c0deefa292a71d6f86e0be2f3 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Tue, 12 Dec 2017 12:23:02 -0800 Subject: [PATCH] :construction_worker: Close popup in aftereach --- spec/api-menu-spec.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/spec/api-menu-spec.js b/spec/api-menu-spec.js index 75a77813a179..0e1050066855 100644 --- a/spec/api-menu-spec.js +++ b/spec/api-menu-spec.js @@ -279,6 +279,8 @@ describe('Menu module', () => { }) afterEach(() => { + menu.closePopup() + menu.closePopup(w) return closeWindow(w).then(() => { w = null }) }) @@ -288,8 +290,6 @@ describe('Menu module', () => { assert.equal(browserWindow, w) assert.equal(x, 100) assert.equal(y, 101) - - menu.closePopup(w) }) it('works without a given BrowserWindow and options', () => { @@ -298,8 +298,6 @@ describe('Menu module', () => { assert.equal(browserWindow.constructor.name, 'BrowserWindow') assert.equal(x, 100) assert.equal(y, 101) - - menu.closePopup() }) it('works without a given BrowserWindow', () => { @@ -308,8 +306,6 @@ describe('Menu module', () => { assert.equal(browserWindow.constructor.name, 'BrowserWindow') assert.equal(x, 100) assert.equal(y, 101) - - menu.closePopup() }) it('works without a given BrowserWindow and 0 options', () => { @@ -318,8 +314,6 @@ describe('Menu module', () => { assert.equal(browserWindow.constructor.name, 'BrowserWindow') assert.equal(x, 0) assert.equal(y, 1) - - menu.closePopup() }) it('works with a given BrowserWindow and no options', () => { @@ -328,8 +322,6 @@ describe('Menu module', () => { assert.equal(browserWindow, w) assert.equal(x, 100) assert.equal(y, 101) - - menu.closePopup(w) }) })