test: remove unneeded console.log (#20424)

(cherry picked from commit 4945a9fce9)
This commit is contained in:
John Kleinschmidt 2019-10-06 16:00:38 -04:00 committed by Shelley Vohr
parent e26fa9090d
commit 3f72f07a7f

View file

@ -1119,7 +1119,7 @@ describe('webContents module', () => {
it(`should not crash when invoked synchronously inside ${e.name} handler`, async () => {
const contents = (webContents as any).create() as WebContents
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())
const destroyed = emittedOnce(contents, 'destroyed')
contents.loadURL(serverUrl + e.url)