Skip to content

Commit d88c697

Browse files
d4vsancheztargos
authored andcommitted
test: refactoring test, reordering arguments
Refactors the test-buffer-inheritance.js test, switches the order of the arguments to be: 'actual', 'expected' PR-URL: #28343 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent e63990e commit d88c697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-buffer-inheritance.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ vals.forEach(function(t) {
3232
let cntr = 0;
3333
for (let i = 0; i < t.length; i++)
3434
cntr += t[i];
35-
assert.strictEqual(t.length * 5, cntr);
35+
assert.strictEqual(cntr, t.length * 5);
3636

3737
// Check this does not throw
3838
t.toString();

0 commit comments

Comments
 (0)