test: fix BrowserWindow spec to await its result (#20612)

This commit is contained in:
Jeremy Apthorp 2019-10-18 16:23:33 -07:00 committed by GitHub
parent 2b890827ef
commit 9f23bb581e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -348,7 +348,7 @@ describe('BrowserWindow module', () => {
})
it('should return a promise that resolves', async () => {
expect(w.loadURL('about:blank')).to.eventually.be.fulfilled
await expect(w.loadURL('about:blank')).to.eventually.be.fulfilled()
})
it('should return a promise that rejects on a load failure', async () => {