Skip to content

Commit

Permalink
test: use strictEqual in test-debug-break
Browse files Browse the repository at this point in the history
use strictEqual assertions in test-debug-break-on-uncaught.js

PR-URL: #10181
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information
edsadr authored and Fishrock123 committed Dec 13, 2016
1 parent 8b698d8 commit 2b78212
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/debugger/test-debug-break-on-uncaught.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ function runScenario(scriptName, throwsOnLine, next) {

function assertHasPaused(client) {
assert(exceptions.length, 'no exceptions thrown, race condition in test?');
assert.equal(exceptions.length, 1, 'debugger did not pause on exception');
assert.equal(exceptions[0].uncaught, true);
assert.equal(exceptions[0].script.name, testScript);
assert.equal(exceptions[0].sourceLine + 1, throwsOnLine);
assert.strictEqual(exceptions.length, 1,
'debugger did not pause on exception');
assert.strictEqual(exceptions[0].uncaught, true);
assert.strictEqual(exceptions[0].script.name, testScript);
assert.strictEqual(exceptions[0].sourceLine + 1, throwsOnLine);
asserted = true;
client.reqContinue(assert.ifError);
}
Expand Down

0 comments on commit 2b78212

Please sign in to comment.