test: change expected and actual values in assert call
PR-URL: https://github.com/nodejs/node/pull/27881 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
4b74dae6b2
commit
ac95c2f0f1
@ -28,7 +28,7 @@ const stream = new OldStream();
|
||||
|
||||
stream.pipe(hasher2).on('finish', common.mustCall(function() {
|
||||
const hash = hasher2.read().toString('hex');
|
||||
assert.strictEqual(expected, hash);
|
||||
assert.strictEqual(hash, expected);
|
||||
}));
|
||||
|
||||
stream.emit('data', Buffer.from('hello'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user