summaryrefslogtreecommitdiff
path: root/test/parallel/test-c-ares.js
diff options
context:
space:
mode:
authorjungkumseok <jungkumseok@gmail.com>2018-10-12 09:13:42 -0700
committerRich Trott <rtrott@gmail.com>2018-10-13 09:06:35 -0700
commit64d65ed7ac1f31bb65dbcc7a7d0fe4e891297149 (patch)
tree439e191d6eb80913ebf68da3e39e4e9c518b4596 /test/parallel/test-c-ares.js
parent9f7e3a404096db60438f6dc305b0a5fa4ecddae7 (diff)
downloadandroid-node-v8-64d65ed7ac1f31bb65dbcc7a7d0fe4e891297149.tar.gz
android-node-v8-64d65ed7ac1f31bb65dbcc7a7d0fe4e891297149.tar.bz2
android-node-v8-64d65ed7ac1f31bb65dbcc7a7d0fe4e891297149.zip
test: fix `assert.strictEqual` arguments in test/parallel/test-c-ares.js
When using `assert.strictEqual`, the first argument must be the actual value and the second argument must be the expected value. PR-URL: https://github.com/nodejs/node/pull/23448 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'test/parallel/test-c-ares.js')
-rw-r--r--test/parallel/test-c-ares.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-c-ares.js b/test/parallel/test-c-ares.js
index 8b1cf79868..45e7d46829 100644
--- a/test/parallel/test-c-ares.js
+++ b/test/parallel/test-c-ares.js
@@ -46,20 +46,20 @@ const dnsPromises = dns.promises;
dns.lookup(null, common.mustCall((error, result, addressType) => {
assert.ifError(error);
- assert.strictEqual(null, result);
- assert.strictEqual(4, addressType);
+ assert.strictEqual(result, null);
+ assert.strictEqual(addressType, 4);
}));
dns.lookup('127.0.0.1', common.mustCall((error, result, addressType) => {
assert.ifError(error);
- assert.strictEqual('127.0.0.1', result);
- assert.strictEqual(4, addressType);
+ assert.strictEqual(result, '127.0.0.1');
+ assert.strictEqual(addressType, 4);
}));
dns.lookup('::1', common.mustCall((error, result, addressType) => {
assert.ifError(error);
- assert.strictEqual('::1', result);
- assert.strictEqual(6, addressType);
+ assert.strictEqual(result, '::1');
+ assert.strictEqual(addressType, 6);
}));
[