★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/d88c697f7fNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
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 <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 d88c697f7fba3d10dbbac0bdcb0ee9b577d6095c
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-buffer-inheritance.js
@@ -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();

0 comments on commit d88c697

Please sign in to comment.