Skip to content

Commit 3c197da

Browse files
committed
more types
1 parent e75fee9 commit 3c197da

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

types/index.d.ts

+19
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,25 @@ declare namespace jest {
389389
* Use `.toBeSymbol` when checking if a value is a `Symbol`.
390390
*/
391391
toBeSymbol(): R;
392+
393+
/**
394+
* Use `.toBeBetween` when checking if a date occurs between `startDate` and `endDate`.
395+
* @param {Date} startDate
396+
* @param {Date} endDate
397+
*/
398+
toBeBetween(startDate: Date, endDate: Date): R;
399+
400+
/**
401+
* Use `.toBeBeforeOrEqualTo` when checking if a date equals to or occurs before `date`.
402+
* @param {Date} date
403+
*/
404+
toBeBeforeOrEqualTo(date: Date): R;
405+
406+
/**
407+
* Use `.toBeAfterOrEqualTo` when checking if a date equals to or occurs after `date`.
408+
* @param {Date} date
409+
*/
410+
toBeAfterOrEqualTo(date: Date): R;
392411
}
393412

394413
// noinspection JSUnusedGlobalSymbols

0 commit comments

Comments
 (0)