summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-date-header.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-02-03 12:27:40 -0800
committerJames M Snell <jasnell@gmail.com>2016-02-04 10:56:17 -0800
commit7406cd3a59302d50420e3c6c12359ac20094ad24 (patch)
tree66d64a0dfc6b0a9ff83656870c8fe71ef5099fb3 /test/parallel/test-http-date-header.js
parentc714b2e21cce7486c1c921aff492c45f39a40d27 (diff)
downloadandroid-node-v8-7406cd3a59302d50420e3c6c12359ac20094ad24.tar.gz
android-node-v8-7406cd3a59302d50420e3c6c12359ac20094ad24.tar.bz2
android-node-v8-7406cd3a59302d50420e3c6c12359ac20094ad24.zip
tools: lint for spacing around unary operators
Enable `space-unary-ops` in `.eslintrc`. This prohibits things like: i ++ // use `i++` instead typeof(foo) // use `typeof foo` or `typeof (foo)` instead Ref: https://github.com/nodejs/node/pull/4772#discussion_r51732299 PR-URL: https://github.com/nodejs/node/pull/5063 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-http-date-header.js')
-rw-r--r--test/parallel/test-http-date-header.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-date-header.js b/test/parallel/test-http-date-header.js
index 4c73800a8e..5ed7fc620b 100644
--- a/test/parallel/test-http-date-header.js
+++ b/test/parallel/test-http-date-header.js
@@ -6,7 +6,7 @@ var http = require('http');
var testResBody = 'other stuff!\n';
var server = http.createServer(function(req, res) {
- assert.ok(! ('date' in req.headers),
+ assert.ok(!('date' in req.headers),
'Request headers contained a Date.');
res.writeHead(200, {
'Content-Type': 'text/plain'