From fbb853f52b1e4a1917218e462e529f13bc6e27b2 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 19 Mar 2017 20:49:47 -0700 Subject: [PATCH] doc: remove superfluous sample assert code Remove superfluous sample code. Since `assert()` is documented as an alias of `assert.ok()` and nothing more, the sample code for `assert.ok()` is sufficient. PR-URL: https://github.com/nodejs/node/pull/11933 Reviewed-By: Luigi Pinca Reviewed-By: Vse Mozhet Byt Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- doc/api/assert.md | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/doc/api/assert.md b/doc/api/assert.md index 14de5af2ed9561..868b90445031c5 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -12,22 +12,7 @@ added: v0.5.9 * `value` {any} * `message` {any} -An alias of [`assert.ok()`][] . - -```js -const assert = require('assert'); - -assert(true); -// OK -assert(1); -// OK -assert(false); -// throws "AssertionError: false == true" -assert(0); -// throws "AssertionError: 0 == true" -assert(false, 'it\'s false'); -// throws "AssertionError: it's false" -``` +An alias of [`assert.ok()`][]. ## assert.deepEqual(actual, expected[, message])