test: close window before destroying browserView (#20411)

This commit is contained in:
Cheng Zhao
2019-10-04 09:30:44 +09:00
committed by GitHub
parent 80af35e0cd
commit 509587eb81

View File

@@ -27,11 +27,11 @@ describe('BrowserView module', () => {
})
afterEach(async () => {
await closeWindow(w)
if (view) {
view.destroy()
}
await closeWindow(w)
})
describe('BrowserView.destroy()', () => {