From e7d41c0312918c592831e14d11e4487afcfb79a7 Mon Sep 17 00:00:00 2001 From: Mrityunjoy Saha Date: Sat, 17 Nov 2018 18:02:25 +0530 Subject: [PATCH] test: modify order of parameters for assertion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/24430 Reviewed-By: Ruben Bridgewater Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell Reviewed-By: Sakthipriyan Vairamani --- test/parallel/test-promises-unhandled-rejections.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-promises-unhandled-rejections.js b/test/parallel/test-promises-unhandled-rejections.js index 93ac186a3b45f6..fdbf17b9594656 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() {