Skip to content

Commit ec8fbfb

Browse files
nolanmar511jasnell
authored andcommitted
test: correct order for assert.strictEqual for inspector-helper test
PR-URL: #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>
1 parent 722e0d4 commit ec8fbfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/common/inspector-helper.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function parseWSFrame(buffer) {
6363
if (buffer[0] === 0x88 && buffer[1] === 0x00) {
6464
return { length: 2, message, closed: true };
6565
}
66-
assert.strictEqual(0x81, buffer[0]);
66+
assert.strictEqual(buffer[0], 0x81);
6767
let dataLen = 0x7F & buffer[1];
6868
let bodyOffset = 2;
6969
if (buffer.length < bodyOffset + dataLen)
@@ -251,7 +251,7 @@ class InspectorSession {
251251
assert.strictEqual(scriptPath.toString(),
252252
expectedScriptPath.toString(),
253253
`${scriptPath} !== ${expectedScriptPath}`);
254-
assert.strictEqual(line, location.lineNumber);
254+
assert.strictEqual(location.lineNumber, line);
255255
return true;
256256
}
257257
}

0 commit comments

Comments
 (0)