Throw error when IPC channel is missing
This commit is contained in:
parent
cead84d5d1
commit
c94f1fc857
2 changed files with 7 additions and 0 deletions
|
@ -664,6 +664,10 @@ describe('browser-window module', function() {
|
|||
assert.throws(function () {
|
||||
w.webContents.send();
|
||||
}, 'channel must be specified');
|
||||
|
||||
assert.throws(function () {
|
||||
w.webContents.send(null);
|
||||
}, 'channel must be specified');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue