From 42413b611b72d39186a6212a9e67ea1907ed9fdc Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 21 Feb 2017 23:39:15 +0100 Subject: [PATCH] doc: add changelogs for assert PR-URL: https://github.com/nodejs/node/pull/11489 Reviewed-By: Ben Noordhuis Reviewed-By: Sam Roberts Reviewed-By: Roman Reiss Reviewed-By: James M Snell Reviewed-By: Italo A. Casas --- doc/api/assert.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/doc/api/assert.md b/doc/api/assert.md index 6e0c9ad409464c..b94f6ee9080ea0 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -30,6 +30,16 @@ assert(false, 'it\'s false'); ## assert.deepEqual(actual, expected[, message]) Tests for deep equality between the `actual` and `expected` parameters. @@ -91,6 +101,16 @@ parameter is undefined, a default error message is assigned. ## assert.deepStrictEqual(actual, expected[, message]) Generally identical to `assert.deepEqual()` with two exceptions. First, @@ -115,6 +135,13 @@ parameter is undefined, a default error message is assigned. ## assert.doesNotThrow(block[, error][, message]) Asserts that the function `block` does not throw an error. See @@ -402,6 +429,10 @@ If the values are not strictly equal, an `AssertionError` is thrown with a ## assert.throws(block[, error][, message]) Expects the function `block` to throw an error.