From d49443371654bc36dde62dd2949bd99007262677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=A1nchez?= Date: Fri, 21 Jun 2019 16:02:27 -0500 Subject: [PATCH] test: refactoring test, reordering arguments Refactors the test-buffer-inheritance.js test, switches the order of the arguments to be: 'actual', 'expected' --- test/parallel/test-buffer-inheritance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-buffer-inheritance.js b/test/parallel/test-buffer-inheritance.js index 0798fe4a177c14..4794f567172d8c 100644 --- a/test/parallel/test-buffer-inheritance.js +++ b/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();