summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-03-19 20:49:47 -0700
committerMyles Borins <mylesborins@google.com>2017-04-18 20:02:15 -0400
commitfb0a2e426d705fd858b0a7dfd2d2678486180d39 (patch)
treed99f4b7ed19dc67ba881133c6887142d27f66d05 /doc
parent3ad0a1430dc13262f20ad4221c4a227fcf90b2e8 (diff)
downloadnode-new-fb0a2e426d705fd858b0a7dfd2d2678486180d39.tar.gz
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.md17
1 files changed, 1 insertions, 16 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md
index 313b77cfbf..873f03e775 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