From aafc14bae574ed72cb8caddbb8f07429dac0b9f9 Mon Sep 17 00:00:00 2001 From: Colin Ihrig Date: Fri, 28 Feb 2025 09:33:00 -0500 Subject: [PATCH] doc: add missing assert return types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit documents the return types for assert.rejects() and assert.doesNotReject(). PR-URL: https://github.com/nodejs/node/pull/57219 Reviewed-By: Michaƫl Zasso Reviewed-By: Chemi Atlow Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- doc/api/assert.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/assert.md b/doc/api/assert.md index 89e2557714..b8cd4f59c4 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