From ee15d13683cf827c7dcecfa4b62c4cfc69d76ad6 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 26 Feb 2025 09:27:51 -0500 Subject: [PATCH] doc: add missing assert return types This commit documents the return types for assert.rejects() and assert.doesNotReject(). --- doc/api/assert.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/assert.md b/doc/api/assert.md index 89e255771408d0..b8cd4f59c42717 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -1097,6 +1097,7 @@ added: v10.0.0 * `asyncFn` {Function|Promise} * `error` {RegExp|Function} * `message` {string} +* Returns: {Promise} Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately calls the function and awaits the returned promise to complete. It will then @@ -2041,6 +2042,7 @@ added: v10.0.0 * `asyncFn` {Function|Promise} * `error` {RegExp|Function|Object|Error} * `message` {string} +* Returns: {Promise} Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately calls the function and awaits the returned promise to complete. It will then