]> khamidou — GitHub mirrors - electron.git/commitdiff
Add failing spec
authorKevin Sawicki <kevinsawicki@gmail.com>
Tue, 9 Feb 2016 18:18:01 +0000 (10:18 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Tue, 9 Feb 2016 18:18:01 +0000 (10:18 -0800)
spec/api-browser-window-spec.js

index 69b895c366dd51dd1ef6b647abc3f58f84318871..d91e9d410e0ad681788e1df024b1bc9b6620732d 100644 (file)
@@ -658,4 +658,12 @@ 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 () {
+        w.webContents.send();
+      }, 'channel must be specified');
+    });
+  });
 });