Skip to content

Commit

Permalink
test: refactoring test, reordering arguments
Browse files Browse the repository at this point in the history
Refactors the test-buffer-inheritance.js test, switches the order of the
arguments to be: 'actual', 'expected'

PR-URL: #28343
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
d4vsanchez authored and targos committed Jul 2, 2019
1 parent e63990e commit d88c697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-buffer-inheritance.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ vals.forEach(function(t) {
let cntr = 0;
for (let i = 0; i < t.length; i++)
cntr += t[i];
assert.strictEqual(t.length * 5, cntr);
assert.strictEqual(cntr, t.length * 5);

// Check this does not throw
t.toString();
Expand Down

0 comments on commit d88c697

Please sign in to comment.