test: correct order for assert.strictEqual for inspector-helper test

PR-URL: https://github.com/nodejs/node/pull/23468
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
Maggie Nolan authored and James M Snell committed 2018-10-17 11:29:49 -07:00
1 parent 722e0d4921
commit ec8fbfb26a
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}
}