GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: remove superfluous sample assert code · nodejs/node@fb0a2e4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • assert.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/assert.md‎

Copy file name to clipboardExpand all lines: doc/api/assert.md
+1-16Lines changed: 1 addition & 16 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,7 @@ added: v0.5.9
1212
* `value` {any}
1313
* `message` {any}
1414

15-
An alias of [`assert.ok()`][] .
16-
17-
```js
18-
const assert = require('assert');
19-
20-
assert(true);
21-
// OK
22-
assert(1);
23-
// OK
24-
assert(false);
25-
// throws "AssertionError: false == true"
26-
assert(0);
27-
// throws "AssertionError: 0 == true"
28-
assert(false, 'it\'s false');
29-
// throws "AssertionError: it's false"
30-
```
15+
An alias of [`assert.ok()`][].
3116

3217
## assert.deepEqual(actual, expected[, message])
3318
<!-- YAML

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.