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 <[email protected]>
Reviewed-By: Voltrex <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • 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.