mirror of
https://github.com/electron/electron.git
synced 2026-01-25 23:38:18 -05: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