Skip to content

Commit

Permalink
doc: adds assert doc for strict mode with pointer to strict equality
Browse files Browse the repository at this point in the history
Refs: #30485

PR-URL: #30486
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
shobhitchittora authored and BethGriggs committed Feb 6, 2020
1 parent 366a45b commit 420d793
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ changes:
description: Added strict mode to the assert module.
-->

In `strict` mode, `assert` functions use the comparison in the corresponding
strict functions. For example, [`assert.deepEqual()`][] will behave like
[`assert.deepStrictEqual()`][].
In `strict` mode (not to be confused with `"use strict"`), `assert` functions
use the comparison in the corresponding strict functions. For example,
[`assert.deepEqual()`][] will behave like [`assert.deepStrictEqual()`][].

In `strict` mode, error messages for objects display a diff. In legacy mode,
error messages for objects display the objects, often truncated.
Expand Down

0 comments on commit 420d793

Please sign in to comment.