Correct formatting

This commit is contained in:
Matt Gibson 2024-06-13 08:17:39 -07:00
parent b34f860408
commit e9f95f23e9
No known key found for this signature in database
GPG Key ID: 963EE038B0581878
1 changed files with 8 additions and 9 deletions

View File

@ -35,15 +35,14 @@ export interface CustomMatchers<R = unknown> {
*/
toBeFulfilled(withinMs?: number): Promise<R>;
/**
* Matches whether the received promise has been resolved.
*
* Failure if the promise is not currently fulfilled or if it has been rejected.
*
* @param received The promise to test
* @param withinMs The time within the promise should be resolved. Defaults to 0, indicating that the promise should already be resolved
* @returns CustomMatcherResult indicating whether or not the test passed
*/
* Matches whether the received promise has been resolved.
*
* Failure if the promise is not currently fulfilled or if it has been rejected.
*
* @param received The promise to test
* @param withinMs The time within the promise should be resolved. Defaults to 0, indicating that the promise should already be resolved
* @returns CustomMatcherResult indicating whether or not the test passed
*/
toBeResolved(withinMs?: number): Promise<R>;
/**
* Matches whether the received promise has been rejected.