Make sure test closes window
Newly added test was leaving window open causing tests to fail
This commit is contained in:
parent
8c5bb5969c
commit
15bfb86eec
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue