summaryrefslogtreecommitdiff
path: root/test/sequential/test-inspector-ip-detection.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/sequential/test-inspector-ip-detection.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/sequential/test-inspector-ip-detection.js')
-rw-r--r--test/sequential/test-inspector-ip-detection.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sequential/test-inspector-ip-detection.js b/test/sequential/test-inspector-ip-detection.js
index a69a57f55f..14be5e6824 100644
--- a/test/sequential/test-inspector-ip-detection.js
+++ b/test/sequential/test-inspector-ip-detection.js
@@ -15,12 +15,12 @@ if (!ip)
function checkIpAddress(ip, response) {
const res = response[0];
- const wsUrl = res['webSocketDebuggerUrl'];
+ const wsUrl = res.webSocketDebuggerUrl;
assert.ok(wsUrl);
const match = wsUrl.match(/^ws:\/\/(.*):\d+\/(.*)/);
assert.strictEqual(ip, match[1]);
- assert.strictEqual(res['id'], match[2]);
- assert.strictEqual(ip, res['devtoolsFrontendUrl'].match(/.*ws=(.*):\d+/)[1]);
+ assert.strictEqual(res.id, match[2]);
+ assert.strictEqual(ip, res.devtoolsFrontendUrl.match(/.*ws=(.*):\d+/)[1]);
}
function pickIPv4Address() {