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 b74e0ff

Browse filesBrowse files
cjihrigaduh95
authored andcommitted
doc: add missing assert return types
This commit documents the return types for assert.rejects() and assert.doesNotReject(). PR-URL: #57219 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent f803d6c commit b74e0ff
Copy full SHA for b74e0ff

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/assert.md‎

Copy file name to clipboardExpand all lines: doc/api/assert.md
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,7 @@ added: v10.0.0
10971097
* `asyncFn` {Function|Promise}
10981098
* `error` {RegExp|Function}
10991099
* `message` {string}
1100+
* Returns: {Promise}
11001101

11011102
Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
11021103
calls the function and awaits the returned promise to complete. It will then
@@ -2041,6 +2042,7 @@ added: v10.0.0
20412042
* `asyncFn` {Function|Promise}
20422043
* `error` {RegExp|Function|Object|Error}
20432044
* `message` {string}
2045+
* Returns: {Promise}
20442046

20452047
Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
20462048
calls the function and awaits the returned promise to complete. It will then

0 commit comments

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