Commit 3c197da 1 parent e75fee9 commit 3c197da Copy full SHA for 3c197da
File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -389,6 +389,25 @@ declare namespace jest {
389
389
* Use `.toBeSymbol` when checking if a value is a `Symbol`.
390
390
*/
391
391
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 ;
392
411
}
393
412
394
413
// noinspection JSUnusedGlobalSymbols
You can’t perform that action at this time.
0 commit comments