summaryrefslogtreecommitdiff
path: root/test/parallel/test-http.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-02-13 06:09:31 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-02-16 19:37:43 +0100
commit463d1a490f2ed4679f8805fa57084b4445ea40d6 (patch)
tree8f374c61041786a1538e4f1bae05fb297ab2e22c /test/parallel/test-http.js
parent36386dc4e349eb593208820949a02e93dc1ffd87 (diff)
downloadandroid-node-v8-463d1a490f2ed4679f8805fa57084b4445ea40d6.tar.gz
android-node-v8-463d1a490f2ed4679f8805fa57084b4445ea40d6.tar.bz2
android-node-v8-463d1a490f2ed4679f8805fa57084b4445ea40d6.zip
test,benchmark,doc: enable dot-notation rule
This enables the eslint dot-notation rule for all code instead of only in /lib. PR-URL: https://github.com/nodejs/node/pull/18749 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com>
Diffstat (limited to 'test/parallel/test-http.js')
-rw-r--r--test/parallel/test-http.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http.js b/test/parallel/test-http.js
index 52bebc476e..e9a48c0fba 100644
--- a/test/parallel/test-http.js
+++ b/test/parallel/test-http.js
@@ -33,8 +33,8 @@ const server = http.Server(common.mustCall(function(req, res) {
switch (req.url) {
case '/hello':
assert.strictEqual(req.method, 'GET');
- assert.strictEqual(req.headers['accept'], '*/*');
- assert.strictEqual(req.headers['foo'], 'bar');
+ assert.strictEqual(req.headers.accept, '*/*');
+ assert.strictEqual(req.headers.foo, 'bar');
assert.strictEqual(req.headers.cookie, 'foo=bar; bar=baz; baz=quux');
break;
case '/there':