Skip to content

Commit a7111d4

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 <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 92ff410 commit a7111d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/assert.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,7 @@ added: v10.0.0
10921092
* `asyncFn` {Function|Promise}
10931093
* `error` {RegExp|Function}
10941094
* `message` {string}
1095+
* Returns: {Promise}
10951096

10961097
Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
10971098
calls the function and awaits the returned promise to complete. It will then
@@ -2036,6 +2037,7 @@ added: v10.0.0
20362037
* `asyncFn` {Function|Promise}
20372038
* `error` {RegExp|Function|Object|Error}
20382039
* `message` {string}
2040+
* Returns: {Promise}
20392041

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

0 commit comments

Comments
 (0)