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 targos committed Dec 9, 2019
1 parent 60b1e1a commit 2c0f1ed
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 2c0f1ed

Please sign in to comment.