diff options
author | Rich Trott <rtrott@gmail.com> | 2017-03-19 20:49:47 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-03-21 23:33:30 -0700 |
commit | fbb853f52b1e4a1917218e462e529f13bc6e27b2 (patch) | |
tree | dbbd8a82ebdc35be45655a648f1ba97977582381 /doc | |
parent | a00c9e95e42300839b541dcdfd85e1d96ef6e803 (diff) | |
download | android-node-v8-fbb853f52b1e4a1917218e462e529f13bc6e27b2.tar.gz android-node-v8-fbb853f52b1e4a1917218e462e529f13bc6e27b2.tar.bz2 android-node-v8-fbb853f52b1e4a1917218e462e529f13bc6e27b2.zip |
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 <luigipinca@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/assert.md | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md index 14de5af2ed..868b904450 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]) <!-- YAML |