summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMrityunjoy Saha <msaha@vmware.com>2018-11-17 18:02:25 +0530
committerRich Trott <rtrott@gmail.com>2018-11-20 15:08:52 -0800
commit7ba83e893e44179abf339c042653334ed71a3f19 (patch)
treed855bf45e8289386e4ed3d9238948608a31c8455 /test
parent77c2cf93cce8dfcb92dcd57f3c29b89704672eb4 (diff)
downloadandroid-node-v8-7ba83e893e44179abf339c042653334ed71a3f19.tar.gz
android-node-v8-7ba83e893e44179abf339c042653334ed71a3f19.tar.bz2
android-node-v8-7ba83e893e44179abf339c042653334ed71a3f19.zip
test: modify order of parameters for assertion
PR-URL: https://github.com/nodejs/node/pull/24430 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-promises-unhandled-rejections.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-promises-unhandled-rejections.js b/test/parallel/test-promises-unhandled-rejections.js
index 93ac186a3b..fdbf17b959 100644
--- a/test/parallel/test-promises-unhandled-rejections.js
+++ b/test/parallel/test-promises-unhandled-rejections.js
@@ -634,8 +634,8 @@ asyncTest(
const e = new Error('error');
const domainError = new Error('domain error');
onUnhandledSucceed(done, function(reason, promise) {
- assert.strictEqual(e, reason);
- assert.strictEqual(domainError, domainReceivedError);
+ assert.strictEqual(reason, e);
+ assert.strictEqual(domainReceivedError, domainError);
});
Promise.reject(e);
process.nextTick(function() {