mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
👷 Let’s test the undefined case, too
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user