Skip to content

Commit

Permalink
test: use conventional argument order in assertion
Browse files Browse the repository at this point in the history
PR-URL: #40591
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Voltrex <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
tniessen authored and BethGriggs committed Nov 25, 2021
1 parent 7230b6d commit b9533c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-buffer-fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit b9533c5

Please sign in to comment.