aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/test/call_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/test/call_test.js')
-rw-r--r--src/node/test/call_test.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node/test/call_test.js b/src/node/test/call_test.js
index 98158ffff3..0079144ae6 100644
--- a/src/node/test/call_test.js
+++ b/src/node/test/call_test.js
@@ -184,4 +184,10 @@ describe('call', function() {
});
});
});
+ describe('getPeer', function() {
+ it('should return a string', function() {
+ var call = new grpc.Call(channel, 'method', getDeadline(1));
+ assert.strictEqual(typeof call.getPeer(), 'string');
+ });
+ });
});