★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/5ad224d6aeNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files

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>
  • Loading branch information...
apoorvanand authored and codebytere committed Nov 17, 2018
1 parent cc4d866 commit 5ad224d6aefde7037831b827598d122596eeb59e
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-buffer-alloc.js
@@ -326,7 +326,7 @@ assert.strictEqual((Buffer.from('Man')).toString('base64'), 'TWFu');
'dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZ' +
'GdlLCBleGNlZWRzIHRoZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm' +
'5hbCBwbGVhc3VyZS4=';
assert.strictEqual(expected, (Buffer.from(quote)).toString('base64'));
assert.strictEqual((Buffer.from(quote)).toString('base64'), expected);

let b = Buffer.allocUnsafe(1024);
let bytesWritten = b.write(expected, 0, 'base64');

0 comments on commit 5ad224d

Please sign in to comment.
You can’t perform that action at this time.