aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/test
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-02-19 14:37:18 -0800
committerGravatar murgatroid99 <mlumish@google.com>2015-02-19 14:37:18 -0800
commitdca966d39ca15d125bcbc25853ce066410adfeb9 (patch)
treeebd4f6d1ce22641cebb6058477e637622f4e4354 /src/node/test
parentf8a9b1c191c752a2e45bac6700d7192dad240e7c (diff)
Fixed lint errors
Diffstat (limited to 'src/node/test')
-rw-r--r--src/node/test/call_test.js2
-rw-r--r--src/node/test/channel_test.js2
-rw-r--r--src/node/test/constant_test.js2
-rw-r--r--src/node/test/end_to_end_test.js4
-rw-r--r--src/node/test/interop_sanity_test.js2
-rw-r--r--src/node/test/math_client_test.js4
-rw-r--r--src/node/test/surface_test.js4
7 files changed, 16 insertions, 4 deletions
diff --git a/src/node/test/call_test.js b/src/node/test/call_test.js
index c1a7e95fa0..7b2b36ae37 100644
--- a/src/node/test/call_test.js
+++ b/src/node/test/call_test.js
@@ -31,6 +31,8 @@
*
*/
+'use strict';
+
var assert = require('assert');
var grpc = require('bindings')('grpc.node');
diff --git a/src/node/test/channel_test.js b/src/node/test/channel_test.js
index 449a8cc4c3..33200c99ee 100644
--- a/src/node/test/channel_test.js
+++ b/src/node/test/channel_test.js
@@ -31,6 +31,8 @@
*
*/
+'use strict';
+
var assert = require('assert');
var grpc = require('bindings')('grpc.node');
diff --git a/src/node/test/constant_test.js b/src/node/test/constant_test.js
index 4a403868c7..ecc98ec443 100644
--- a/src/node/test/constant_test.js
+++ b/src/node/test/constant_test.js
@@ -31,6 +31,8 @@
*
*/
+'use strict';
+
var assert = require('assert');
var grpc = require('bindings')('grpc.node');
diff --git a/src/node/test/end_to_end_test.js b/src/node/test/end_to_end_test.js
index 8e99d6f162..1cc1928691 100644
--- a/src/node/test/end_to_end_test.js
+++ b/src/node/test/end_to_end_test.js
@@ -31,6 +31,8 @@
*
*/
+'use strict';
+
var assert = require('assert');
var grpc = require('bindings')('grpc.node');
@@ -227,7 +229,7 @@ describe('end-to-end', function() {
response_batch[grpc.opType.RECV_CLOSE_ON_SERVER] = true;
server_call.startBatch(response_batch, function(err, response) {
assert(response['send status']);
- assert(!response['cancelled']);
+ assert(!response.cancelled);
done();
});
});
diff --git a/src/node/test/interop_sanity_test.js b/src/node/test/interop_sanity_test.js
index d1bdd1660f..8dc933eac5 100644
--- a/src/node/test/interop_sanity_test.js
+++ b/src/node/test/interop_sanity_test.js
@@ -31,6 +31,8 @@
*
*/
+'use strict';
+
var interop_server = require('../interop/interop_server.js');
var interop_client = require('../interop/interop_client.js');
diff --git a/src/node/test/math_client_test.js b/src/node/test/math_client_test.js
index fd946e0325..d83f64116f 100644
--- a/src/node/test/math_client_test.js
+++ b/src/node/test/math_client_test.js
@@ -31,6 +31,8 @@
*
*/
+'use strict';
+
var assert = require('assert');
var grpc = require('..');
@@ -59,7 +61,7 @@ describe('Math client', function() {
});
it('should handle a single request', function(done) {
var arg = {dividend: 7, divisor: 4};
- var call = math_client.div(arg, function handleDivResult(err, value) {
+ math_client.div(arg, function handleDivResult(err, value) {
assert.ifError(err);
assert.equal(value.quotient, 1);
assert.equal(value.remainder, 3);
diff --git a/src/node/test/surface_test.js b/src/node/test/surface_test.js
index d6694724e5..91d8197bee 100644
--- a/src/node/test/surface_test.js
+++ b/src/node/test/surface_test.js
@@ -31,9 +31,9 @@
*
*/
-var assert = require('assert');
+'use strict';
-var surface_server = require('../src/server.js');
+var assert = require('assert');
var surface_client = require('../src/client.js');