Skip to content

Commit

Permalink
test: ensure window doesn't leak into other test
Browse files Browse the repository at this point in the history
  • Loading branch information
loc committed Mar 24, 2020
1 parent a17e065 commit e6a8fa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec-main/api-web-contents-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1848,5 +1848,6 @@ describe('webContents module', () => {
await w.webContents.executeJavaScript(`window.open('about:blank')`)
await new Promise((resolve) => { process.nextTick(resolve) })
expect(wasCalled).to.equal(false)
await closeAllWindows()
})
})

0 comments on commit e6a8fa2

Please sign in to comment.