refactor: don't send ipcRenderer.sendSync() returnValue as an array (#26178)

This commit is contained in:
Milan Burda 2020-10-28 16:48:20 +01:00 committed by GitHub
parent 83747ad21c
commit 0c2e2bca92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -790,7 +790,7 @@ describe('chromium features', () => {
});
expect(await w.webContents.executeJavaScript(`(${function () {
const { ipc } = process._linkedBinding('electron_renderer_ipc');
return ipc.sendSync(true, 'GUEST_WINDOW_MANAGER_WINDOW_OPEN', ['', '', ''])[0];
return ipc.sendSync(true, 'GUEST_WINDOW_MANAGER_WINDOW_OPEN', ['', '', '']);
}})()`)).to.be.null();
const exception = await uncaughtException;
expect(exception.message).to.match(/denied: expected native window\.open/);