diff options
author | Roman Reiss <me@silverwind.io> | 2015-05-19 13:00:06 +0200 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2015-05-19 21:21:27 +0200 |
commit | f29762f4dd5811464684f820286f1c90a694bdff (patch) | |
tree | 67ba73a81c3938f41796dfa4c595f9713de59933 /test/parallel/test-https-strict.js | |
parent | 85d99830096a48b7d50cc3b0e5c3fba4172c2d02 (diff) | |
download | android-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.tar.gz android-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.tar.bz2 android-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.zip |
test: enable linting for tests
Enable linting for the test directory. A number of changes was made so
all tests conform the current rules used by lib and src directories. The
only exception for tests is that unreachable (dead) code is allowed.
test-fs-non-number-arguments-throw had to be excluded from the changes
because of a weird issue on Windows CI.
PR-URL: https://github.com/nodejs/io.js/pull/1721
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/parallel/test-https-strict.js')
-rw-r--r-- | test/parallel/test-https-strict.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/parallel/test-https-strict.js b/test/parallel/test-https-strict.js index b2620fa88b..7ab5c3ee82 100644 --- a/test/parallel/test-https-strict.js +++ b/test/parallel/test-https-strict.js @@ -1,3 +1,4 @@ +'use strict'; // disable strict server certificate validation by the client process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; @@ -100,7 +101,7 @@ function listening() { if (listenWait === 0) { allListening(); } - } + }; } function makeReq(path, port, error, host, ca) { @@ -127,7 +128,7 @@ function makeReq(path, port, error, host, ca) { } if (host) { - options.headers = { host: host } + options.headers = { host: host }; } var req = https.get(options); expectResponseCount++; @@ -136,7 +137,7 @@ function makeReq(path, port, error, host, ca) { : port === port3 ? server3 : null; - if (!server) throw new Error('invalid port: '+port); + if (!server) throw new Error('invalid port: ' + port); server.expectCount++; req.on('response', function(res) { @@ -150,7 +151,7 @@ function makeReq(path, port, error, host, ca) { server3.close(); } res.resume(); - }) + }); } function allListening() { |