From c14e700cbf3fb5c486c62e7ebb97da072940066e Mon Sep 17 00:00:00 2001 From: OliverOdo Date: Thu, 7 Oct 2021 21:16:40 +0700 Subject: [PATCH] doc: fix missing variable in deepStrictEqual example --- doc/api/assert.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/assert.md b/doc/api/assert.md index 3848cde97f65e8..94272b4caaebf6 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -692,7 +692,7 @@ are recursively evaluated also by the following rules. import assert from 'assert/strict'; // This fails because 1 !== '1'. -deepStrictEqual({ a: 1 }, { a: '1' }); +assert.deepStrictEqual({ a: 1 }, { a: '1' }); // AssertionError: Expected inputs to be strictly deep-equal: // + actual - expected //