test: remove unneeded console.log
This commit is contained in:
parent
7f320eef0e
commit
4945a9fce9
1 changed files with 1 additions and 1 deletions
|
@ -1119,7 +1119,7 @@ describe('webContents module', () => {
|
||||||
it(`should not crash when invoked synchronously inside ${e.name} handler`, async () => {
|
it(`should not crash when invoked synchronously inside ${e.name} handler`, async () => {
|
||||||
const contents = (webContents as any).create() as WebContents
|
const contents = (webContents as any).create() as WebContents
|
||||||
const originalEmit = contents.emit.bind(contents)
|
const originalEmit = contents.emit.bind(contents)
|
||||||
contents.emit = (...args) => { console.log(args); return originalEmit(...args) }
|
contents.emit = (...args) => { return originalEmit(...args) }
|
||||||
contents.once(e.name as any, () => (contents as any).destroy())
|
contents.once(e.name as any, () => (contents as any).destroy())
|
||||||
const destroyed = emittedOnce(contents, 'destroyed')
|
const destroyed = emittedOnce(contents, 'destroyed')
|
||||||
contents.loadURL(serverUrl + e.url)
|
contents.loadURL(serverUrl + e.url)
|
||||||
|
|
Loading…
Reference in a new issue