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:
oksana 2019-05-26 12:51:36 +03:00 committed by Rich Trott
parent 4b74dae6b2
commit ac95c2f0f1

View File

@ -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'));