From b9533c592abcca6a228f5fc264b4b8d87b9345c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sun, 24 Oct 2021 21:47:17 +0000 Subject: [PATCH] test: use conventional argument order in assertion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/40591 Reviewed-By: Colin Ihrig Reviewed-By: Voltrex Reviewed-By: Rich Trott Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell --- test/parallel/test-buffer-fill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-buffer-fill.js b/test/parallel/test-buffer-fill.js index 00e65c82e91849..e91492a59e81b3 100644 --- a/test/parallel/test-buffer-fill.js +++ b/test/parallel/test-buffer-fill.js @@ -315,7 +315,7 @@ Buffer.alloc(8, ''); buf.fill('h'); for (let i = 0; i < buf.length; i++) - assert.strictEqual('h'.charCodeAt(0), buf[i]); + assert.strictEqual(buf[i], 'h'.charCodeAt(0)); buf.fill(0); for (let i = 0; i < buf.length; i++)