From 1a39a56f6c7465ad4091e5471f8e825ed3e53adb Mon Sep 17 00:00:00 2001 From: Maggie Nolan Date: Fri, 12 Oct 2018 09:54:24 -0700 Subject: [PATCH] test: correct order for assert.strictEqual for inspector-helper test PR-URL: https://github.com/nodejs/node/pull/23468 Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Sakthipriyan Vairamani --- test/common/inspector-helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/inspector-helper.js b/test/common/inspector-helper.js index ae8fd9732d34f5..7cac2b29f9c90c 100644 --- a/test/common/inspector-helper.js +++ b/test/common/inspector-helper.js @@ -63,7 +63,7 @@ function parseWSFrame(buffer) { if (buffer[0] === 0x88 && buffer[1] === 0x00) { return { length: 2, message, closed: true }; } - assert.strictEqual(0x81, buffer[0]); + assert.strictEqual(buffer[0], 0x81); let dataLen = 0x7F & buffer[1]; let bodyOffset = 2; if (buffer.length < bodyOffset + dataLen) @@ -251,7 +251,7 @@ class InspectorSession { assert.strictEqual(scriptPath.toString(), expectedScriptPath.toString(), `${scriptPath} !== ${expectedScriptPath}`); - assert.strictEqual(line, location.lineNumber); + assert.strictEqual(location.lineNumber, line); return true; } }