aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-07-27 15:54:13 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-07-27 15:54:13 -0700
commit928a0cc71fb52bc834bebdfbb92293b45d69c2f0 (patch)
tree5513860729127e160d78e8508de2cfdfc1c8ef41 /src
parent893690f8608f0f523b0a7d397045a67adcc3f597 (diff)
Added test that credential channel argument is required
Diffstat (limited to 'src')
-rw-r--r--src/node/test/channel_test.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/node/test/channel_test.js b/src/node/test/channel_test.js
index 3cb43334b0..c991d7b25b 100644
--- a/src/node/test/channel_test.js
+++ b/src/node/test/channel_test.js
@@ -51,13 +51,16 @@ describe('channel', function() {
new grpc.Channel(5);
});
});
- it('should accept a credential for the second argument', function() {
+ it('should require a credential for the second argument', function() {
assert.doesNotThrow(function() {
new grpc.Channel('hostname', insecureCreds);
});
assert.throws(function() {
new grpc.Channel('hostname', 5);
});
+ assert.throws(function() {
+ new grpc.Channel('hostname');
+ });
});
it('should accept an object for the third argument', function() {
assert.doesNotThrow(function() {