Skip to content

Commit b74e0ff

Browse 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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/assert.md

+2
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)