mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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>
This commit is contained in:
1 parent
77c2cf93cc
commit
7ba83e893e
1 file changed
+2
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user