From d88c697f7fba3d10dbbac0bdcb0ee9b577d6095c 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' PR-URL: https://github.com/nodejs/node/pull/28343 Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Yongsheng Zhang Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell --- 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();