summaryrefslogtreecommitdiff
path: root/src/node_util.cc
diff options
context:
space:
mode:
authorDan.Williams <daniel@chat.za.net>2016-09-13 19:27:34 +0100
committerRich Trott <rtrott@gmail.com>2016-09-16 16:05:06 -0700
commita89c23f8ebb8d47e2f577d3594bfb465c1861d25 (patch)
treed950448eeaa87528c6d3070538e557c1492eb622 /src/node_util.cc
parent7926886bf322ec9c69ec20afa26edfad17a47e08 (diff)
downloadandroid-node-v8-a89c23f8ebb8d47e2f577d3594bfb465c1861d25.tar.gz
android-node-v8-a89c23f8ebb8d47e2f577d3594bfb465c1861d25.tar.bz2
android-node-v8-a89c23f8ebb8d47e2f577d3594bfb465c1861d25.zip
test: improve test-https-agent.js
On line 40: replace '==' with '===' On line 52: replace 'assert.equal' with 'assert.strictEqual' Added some comments. Changed 'var' to 'const' where possible. Replaced console.log(res.statusCode); with and assertion. Rather than logging the https request status on every loop it will now assert the https status is correct on every loop. Changed the error listener to throw the error rather than log it. PR-URL: https://github.com/nodejs/node/pull/8517 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'src/node_util.cc')
0 files changed, 0 insertions, 0 deletions