From cce8753d78ae6653d5f494cb7c1fae58abe27e68 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 --- 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; } }