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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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