Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Improve coverage for assert.ok
  • Loading branch information
estrada9166 committed Jun 21, 2019
commit 5e970a1c6674d1f95493d8dc78927757e2845c03
1 change: 1 addition & 0 deletions test/parallel/test-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ assert.ok(a.AssertionError.prototype instanceof Error,

assert.throws(() => a(false), a.AssertionError, 'ok(false)');
assert.throws(() => a.ok(false), a.AssertionError, 'ok(false)');
assert.throws(() => a.ok(false, true, new Error('ok(false)')), a.AssertionError);
Comment thread
addaleax marked this conversation as resolved.
Outdated

a(true);
a('test', 'ok(\'test\')');
Expand Down