Skip to content

Commit 5ad224d

Browse files
apoorvanandcodebytere
authored andcommitted
test: fix the arguments order in assert.strictEqual
PR-URL: #24431 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: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent cc4d866 commit 5ad224d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/parallel/test-buffer-alloc.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ assert.strictEqual((Buffer.from('Man')).toString('base64'), 'TWFu');
326326
'dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZ'+
327327
'GdlLCBleGNlZWRzIHRoZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm'+
328328
'5hbCBwbGVhc3VyZS4=';
329-
assert.strictEqual(expected,(Buffer.from(quote)).toString('base64'));
329+
assert.strictEqual((Buffer.from(quote)).toString('base64'),expected);
330330

331331
letb=Buffer.allocUnsafe(1024);
332332
letbytesWritten=b.write(expected,0,'base64');

0 commit comments

Comments
 (0)