diff options
author | Rich Trott <rtrott@gmail.com> | 2016-02-03 12:27:40 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-02-04 10:56:17 -0800 |
commit | 7406cd3a59302d50420e3c6c12359ac20094ad24 (patch) | |
tree | 66d64a0dfc6b0a9ff83656870c8fe71ef5099fb3 /test/parallel/test-http-set-trailers.js | |
parent | c714b2e21cce7486c1c921aff492c45f39a40d27 (diff) | |
download | node-new-7406cd3a59302d50420e3c6c12359ac20094ad24.tar.gz |
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-set-trailers.js')
-rw-r--r-- | test/parallel/test-http-set-trailers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-set-trailers.js b/test/parallel/test-http-set-trailers.js index f3ee5b157f..000df0189a 100644 --- a/test/parallel/test-http-set-trailers.js +++ b/test/parallel/test-http-set-trailers.js @@ -33,7 +33,7 @@ server.on('listening', function() { c.on('end', function() { c.end(); - assert.ok(! /x-foo/.test(res_buffer), 'Trailer in HTTP/1.0 response.'); + assert.ok(!/x-foo/.test(res_buffer), 'Trailer in HTTP/1.0 response.'); outstanding_reqs--; if (outstanding_reqs == 0) { server.close(); |