mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: refactoring test, reordering arguments
Refactors the test-buffer-inheritance.js test, switches the order of the arguments to be: 'actual', 'expected' PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
a10962187f
commit
945134361f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user