aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/test/channel_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/test/channel_test.js')
-rw-r--r--src/node/test/channel_test.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node/test/channel_test.js b/src/node/test/channel_test.js
index 33200c99ee..3e61d3bbc6 100644
--- a/src/node/test/channel_test.js
+++ b/src/node/test/channel_test.js
@@ -87,4 +87,10 @@ describe('channel', function() {
});
});
});
+ describe('getTarget', function() {
+ it('should return a string', function() {
+ var channel = new grpc.Channel('localhost', {});
+ assert.strictEqual(typeof channel.getTarget(), 'string');
+ });
+ });
});