Skip to content

Commit

Permalink
Fix typescript for toBeDateString and toBeHexadecimal (#381) (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharkness authored Nov 29, 2021
1 parent 51040aa commit 0e55058
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,14 @@ declare namespace jest {
toBeFunction(): R;

/**
* Use `.toBeDateString` when checking if a value is a valid date string.
*
* @param {String} string
*/
toBeDateString(string: string): R;
* Use `.toBeDateString` when checking if a value is a valid date string.
*/
toBeDateString(): R;

/**
* Use `.toBeHexadecimal` when checking if a value is a valid HTML hex color.
*
* @param {String} string
*/
toBeHexadecimal(string: string): R;
toBeHexadecimal(): R;

/**
* Use `.toHaveBeenCalledBefore` when checking if a `Mock` was called before another `Mock`.
Expand Down Expand Up @@ -414,7 +410,7 @@ declare namespace jest {
*
* @param {String} string
*/
toEqualIgnoringWhitespace(string: string): R;
toEqualIgnoringWhitespace(string: string): R;
}

// noinspection JSUnusedGlobalSymbols
Expand Down Expand Up @@ -541,18 +537,14 @@ declare namespace jest {
toBeFunction(): any;

/**
* Use `.toBeDateString` when checking if a value is a valid date string.
*
* @param {String} string
*/
toBeDateString(string: string): any;
* Use `.toBeDateString` when checking if a value is a valid date string.
*/
toBeDateString(): any;

/**
* Use `.toBeHexadecimal` when checking if a value is a valid HTML hex color.
*
* @param {String} string
*/
toBeHexadecimal(string: string): any;
toBeHexadecimal(): any;

/**
* Use `.toHaveBeenCalledBefore` when checking if a `Mock` was called before another `Mock`.
Expand Down Expand Up @@ -824,6 +816,6 @@ declare namespace jest {
*
* @param {String} string
*/
toEqualIgnoringWhitespace(string: string): any;
toEqualIgnoringWhitespace(string: string): any;
}
}

0 comments on commit 0e55058

Please sign in to comment.