Skip to content

Commit

Permalink
doc: fix the wrong name of AssertionError
Browse files Browse the repository at this point in the history
err.name of AssertionError should be 'AssertionError'

PR-URL: #27982
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
kyle7zhang authored and targos committed Jun 2, 2019
1 parent 11c3ddb commit 70b4854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ try {
} catch (err) {
assert(err instanceof assert.AssertionError);
assert.strictEqual(err.message, message);
assert.strictEqual(err.name, 'AssertionError [ERR_ASSERTION]');
assert.strictEqual(err.name, 'AssertionError');
assert.strictEqual(err.actual, 1);
assert.strictEqual(err.expected, 2);
assert.strictEqual(err.code, 'ERR_ASSERTION');
Expand Down

0 comments on commit 70b4854

Please sign in to comment.