mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Match existing function style
This commit is contained in:
@@ -661,11 +661,11 @@ describe('browser-window module', function() {
|
||||
|
||||
describe('window.webContents.send(channel, args...)', function() {
|
||||
it('throws an error when the channel is missing', function() {
|
||||
assert.throws(function () {
|
||||
assert.throws(function() {
|
||||
w.webContents.send();
|
||||
}, 'channel must be specified');
|
||||
|
||||
assert.throws(function () {
|
||||
assert.throws(function() {
|
||||
w.webContents.send(null);
|
||||
}, 'channel must be specified');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user