Improve error message
This commit is contained in:
parent
3e399d09d7
commit
704bd4d191
2 changed files with 3 additions and 3 deletions
|
@ -663,11 +663,11 @@ describe('browser-window module', function() {
|
|||
it('throws an error when the channel is missing', function() {
|
||||
assert.throws(function() {
|
||||
w.webContents.send();
|
||||
}, 'channel must be specified');
|
||||
}, 'Missing required channel argument');
|
||||
|
||||
assert.throws(function() {
|
||||
w.webContents.send(null);
|
||||
}, 'channel must be specified');
|
||||
}, 'Missing required channel argument');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue