Skip to content

Commit 2b78212

Browse files
edsadrFishrock123
authored andcommitted
test: use strictEqual in test-debug-break
use strictEqual assertions in test-debug-break-on-uncaught.js PR-URL: #10181 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Italo A. Casas <[email protected] Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent 8b698d8 commit 2b78212

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/debugger/test-debug-break-on-uncaught.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ function runScenario(scriptName, throwsOnLine, next) {
100100

101101
function assertHasPaused(client) {
102102
assert(exceptions.length, 'no exceptions thrown, race condition in test?');
103-
assert.equal(exceptions.length, 1, 'debugger did not pause on exception');
104-
assert.equal(exceptions[0].uncaught, true);
105-
assert.equal(exceptions[0].script.name, testScript);
106-
assert.equal(exceptions[0].sourceLine + 1, throwsOnLine);
103+
assert.strictEqual(exceptions.length, 1,
104+
'debugger did not pause on exception');
105+
assert.strictEqual(exceptions[0].uncaught, true);
106+
assert.strictEqual(exceptions[0].script.name, testScript);
107+
assert.strictEqual(exceptions[0].sourceLine + 1, throwsOnLine);
107108
asserted = true;
108109
client.reqContinue(assert.ifError);
109110
}

0 commit comments

Comments
 (0)