Browse Source

test: use strictEqual in test-debug-break

use strictEqual assertions in test-debug-break-on-uncaught.js

PR-URL: https://github.com/nodejs/node/pull/10181
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
v7.x
Adrian Estrada 8 years ago
committed by Jeremiah Senkpiel
parent
commit
2b78212445
  1. 9
      test/debugger/test-debug-break-on-uncaught.js

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

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

Loading…
Cancel
Save