From 6db07300d96ea3153a74ec7bc6a027028f56ca87 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. --- 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])