Make sure test closes window

Newly added test was leaving window open causing tests to fail
This commit is contained in:
John Kleinschmidt 2017-10-04 11:35:41 -04:00
parent 8c5bb5969c
commit 15bfb86eec

View file

@ -709,15 +709,16 @@ describe('BrowserWindow module', function () {
})
})
describe('BrowserWindow.addTabbedWindow()', function () {
describe('BrowserWindow.addTabbedWindow()', function (done) {
it('does not throw', function () {
if (process.platform !== 'darwin') {
return
}
const tabbedWindow = new BrowserWindow({})
assert.doesNotThrow(() => {
w.addTabbedWindow(new BrowserWindow({}))
w.addTabbedWindow(tabbedWindow)
})
closeWindow(tabbedWindow).then(done)
})
})