Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d759e0f

Browse filesBrowse files
Trotttargos
authored andcommitted
doc: remove "note that" from assert.md
Refs: nodejs/remark-preset-lint-node#16 PR-URL: #28329 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent d384911 commit d759e0f
Copy full SHA for d759e0f

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/assert.md‎

Copy file name to clipboardExpand all lines: doc/api/assert.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
115115
```
116116

117117
To deactivate the colors, use the `NODE_DISABLE_COLORS` environment variable.
118-
Please note that this will also deactivate the colors in the REPL.
118+
This will also deactivate the colors in the REPL.
119119

120120
## Legacy mode
121121

@@ -1029,7 +1029,7 @@ assert.rejects(
10291029
});
10301030
```
10311031

1032-
Note that `error` cannot be a string. If a string is provided as the second
1032+
`error` cannot be a string. If a string is provided as the second
10331033
argument, then `error` is assumed to be omitted and the string will be used for
10341034
`message` instead. This can lead to easy-to-miss mistakes. Please read the
10351035
example in [`assert.throws()`][] carefully if using a string as the second
@@ -1131,7 +1131,7 @@ assert.throws(
11311131
nested: true,
11321132
baz: 'text'
11331133
}
1134-
// Note that only properties on the validation object will be tested for.
1134+
// Only properties on the validation object will be tested for.
11351135
// Using nested objects requires all properties to be present. Otherwise
11361136
// the validation is going to fail.
11371137
}
@@ -1217,7 +1217,7 @@ assert.throws(
12171217
);
12181218
```
12191219

1220-
Note that `error` cannot be a string. If a string is provided as the second
1220+
`error` cannot be a string. If a string is provided as the second
12211221
argument, then `error` is assumed to be omitted and the string will be used for
12221222
`message` instead. This can lead to easy-to-miss mistakes. Using the same
12231223
message as the thrown error message is going to result in an

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.