Skip to content

Commit

Permalink
test: correct order for assert.strictEqual for inspector-helper test
Browse files Browse the repository at this point in the history
PR-URL: #23468
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
  • Loading branch information
nolanmar511 authored and jasnell committed Oct 17, 2018
1 parent 722e0d4 commit ec8fbfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common/inspector-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ec8fbfb

Please sign in to comment.