Skip to content
Snippets Groups Projects
Commit 928a0cc7 authored by murgatroid99's avatar murgatroid99
Browse files

Added test that credential channel argument is required

parent 893690f8
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment