diff options
author | murgatroid99 <mlumish@google.com> | 2015-03-17 18:20:51 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-03-17 18:20:51 -0700 |
commit | 429bb7abbd8c8d17cdcb9826270eed8b3634439a (patch) | |
tree | b1e531626fdcd4a9235021ddb3b39f919cc9e0e7 | |
parent | da771517c67c1ed09606a603d73b17380c650a1e (diff) |
Simplified some tests
-rw-r--r-- | src/node/test/end_to_end_test.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/node/test/end_to_end_test.js b/src/node/test/end_to_end_test.js index c39364d410..60e9861bc8 100644 --- a/src/node/test/end_to_end_test.js +++ b/src/node/test/end_to_end_test.js @@ -138,21 +138,21 @@ describe('end-to-end', function() { client_batch[grpc.opType.RECV_STATUS_ON_CLIENT] = true; call.startBatch(client_batch, function(err, response) { assert.ifError(err); - assert(response['send metadata']); - assert(response['client close']); - assert(response.hasOwnProperty('metadata')); - assert.strictEqual(response.metadata.server_key[0].toString(), - 'server_value'); - assert.deepEqual(response.status, {'code': grpc.status.OK, - 'details': status_text, - 'metadata': {}}); + assert.deepEqual(response,{ + 'send metadata': true, + 'client close': true, + metadata: {server_key: ['server_value']}, + status: {'code': grpc.status.OK, + 'details': status_text, + 'metadata': {}} + }); done(); }); server.requestCall(function(err, call_details) { var new_call = call_details['new call']; assert.notEqual(new_call, null); - assert.strictEqual(new_call.metadata.client_key[0].toString(), + assert.strictEqual(new_call.metadata.client_key[0], 'client_value'); var server_call = new_call.call; assert.notEqual(server_call, null); |