👷 Let’s test the undefined case, too
This commit is contained in:
parent
14db204315
commit
b7bc4eb586
1 changed files with 4 additions and 0 deletions
|
@ -818,6 +818,10 @@ describe('BrowserWindow module', () => {
|
|||
it('returns the window with the browserView', () => {
|
||||
assert.equal(BrowserWindow.fromBrowserView(bv).id, w.id)
|
||||
})
|
||||
|
||||
it('returns undefined if not attached', () => {
|
||||
w.setBrowserView(null)
|
||||
assert.equal(BrowserWindow.fromBrowserView(bv), undefined)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue