From 5d663100a02730b22e9a2163d2e36384f4aa136d Mon Sep 17 00:00:00 2001 From: apoorvanand Date: Sat, 17 Nov 2018 18:09:30 +0530 Subject: [PATCH] test: fix the arguments order in `assert.strictEqual` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/24431 Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat Reviewed-By: Ouyang Yadong Reviewed-By: James M Snell --- test/parallel/test-buffer-alloc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-buffer-alloc.js b/test/parallel/test-buffer-alloc.js index 313a13cb1e41ad..bdba19ae66ddb5 100644 --- a/test/parallel/test-buffer-alloc.js +++ b/test/parallel/test-buffer-alloc.js @@ -312,7 +312,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');