test: close window before destroying browserView (#20420)

This commit is contained in:
trop[bot]
2019-10-04 10:26:32 +02:00
committed by Shelley Vohr
parent 23a52c02a3
commit a92ee9443d

View File

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