summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-expect-continue.js
diff options
context:
space:
mode:
authorGibson Fahnestock <gib@uk.ibm.com>2017-01-08 15:36:25 +0000
committerGibson Fahnestock <gib@uk.ibm.com>2017-01-11 14:19:26 +0000
commit3d2aef3979cf7ac986908dbb9879216caec4a3ff (patch)
tree0566cf3150e4b9bcce3359814b3927c562bdbc42 /test/parallel/test-http-expect-continue.js
parent81fef918d5a8a9aa297b78ade5e58d6caa3176e6 (diff)
downloadandroid-node-v8-3d2aef3979cf7ac986908dbb9879216caec4a3ff.tar.gz
android-node-v8-3d2aef3979cf7ac986908dbb9879216caec4a3ff.tar.bz2
android-node-v8-3d2aef3979cf7ac986908dbb9879216caec4a3ff.zip
test: s/assert.equal/assert.strictEqual/
Use assert.strictEqual instead of assert.equal in tests, manually convert types where necessary. PR-URL: https://github.com/nodejs/node/pull/10698 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Diffstat (limited to 'test/parallel/test-http-expect-continue.js')
-rw-r--r--test/parallel/test-http-expect-continue.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/parallel/test-http-expect-continue.js b/test/parallel/test-http-expect-continue.js
index 0cf90e3b11..01f285d29e 100644
--- a/test/parallel/test-http-expect-continue.js
+++ b/test/parallel/test-http-expect-continue.js
@@ -10,7 +10,8 @@ let sent_continue = false;
let got_continue = false;
function handler(req, res) {
- assert.equal(sent_continue, true, 'Full response sent before 100 Continue');
+ assert.strictEqual(sent_continue, true, 'Full response sent before ' +
+ '100 Continue');
console.error('Server sending full response...');
res.writeHead(200, {
'Content-Type': 'text/plain',
@@ -47,15 +48,15 @@ server.on('listening', function() {
req.end(test_req_body);
});
req.on('response', function(res) {
- assert.equal(got_continue, true,
- 'Full response received before 100 Continue');
- assert.equal(200, res.statusCode,
- 'Final status code was ' + res.statusCode + ', not 200.');
+ assert.strictEqual(got_continue, true,
+ 'Full response received before 100 Continue');
+ assert.strictEqual(200, res.statusCode, 'Final status code was ' +
+ res.statusCode + ', not 200.');
res.setEncoding('utf8');
res.on('data', function(chunk) { body += chunk; });
res.on('end', function() {
console.error('Got full response.');
- assert.equal(body, test_res_body, 'Response body doesn\'t match.');
+ assert.strictEqual(body, test_res_body, 'Response body doesn\'t match.');
assert.ok('abcd' in res.headers, 'Response headers missing.');
outstanding_reqs--;
if (outstanding_reqs === 0) {