refactor: use loadFile when appropriate in tests (#14422)
This commit is contained in:
parent
e8782f2c2d
commit
c63014c256
13 changed files with 115 additions and 137 deletions
|
@ -27,7 +27,7 @@ describe('ipc main module', () => {
|
|||
event.returnValue = null
|
||||
done()
|
||||
})
|
||||
w.loadURL(`file://${path.join(fixtures, 'api', 'send-sync-message.html')}`)
|
||||
w.loadFile(path.join(fixtures, 'api', 'send-sync-message.html'))
|
||||
})
|
||||
|
||||
it('does not crash when reply is sent by multiple listeners', (done) => {
|
||||
|
@ -39,7 +39,7 @@ describe('ipc main module', () => {
|
|||
event.returnValue = null
|
||||
done()
|
||||
})
|
||||
w.loadURL(`file://${path.join(fixtures, 'api', 'send-sync-message.html')}`)
|
||||
w.loadFile(path.join(fixtures, 'api', 'send-sync-message.html'))
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -77,7 +77,7 @@ describe('ipc main module', () => {
|
|||
done()
|
||||
})
|
||||
|
||||
w.loadURL(`file://${path.join(fixtures, 'api', 'render-view-deleted.html')}`)
|
||||
w.loadFile(path.join(fixtures, 'api', 'render-view-deleted.html'))
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue