test: fix the arguments order in assert.strictEqual
PR-URL: https://github.com/nodejs/node/pull/24620 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Masashi Hirano <shisama07@gmail.com>
This commit is contained in:
parent
cda6b20816
commit
97fedefc18
@ -189,7 +189,7 @@ const { inherits } = require('util');
|
||||
const expected = new Error('kaboom');
|
||||
|
||||
write.destroy(expected, common.mustCall(function(err) {
|
||||
assert.strictEqual(expected, err);
|
||||
assert.strictEqual(err, expected);
|
||||
}));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user