mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: fix BrowserWindow spec to await its result (#20612)
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user