You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: Add jest custom matcher toEqualMoment() (#1980)
* test: Add toBeSameMoment() custom matcher
* test: Rework tests to use toBeSameMoment() custom matcher
To give meaningful output upon test failure
* test: Rework tests to use toBeSameMoment() custom matcher
To give meaningful output upon test failure
* test: .not.toBeSameMoment() now gives meaningful message
* test: Extract variables in toBeSameMoment() before adding support for received being null
* test: toBeSameMoment() is now useful if received "date" is null
* test: Simplify moment test, now that toBeSameMoment() handles nulls
* test: Rename toBeSameMoment() to toEqualMoment()
@@ -178,8 +178,8 @@ describe('Recurrence - with invalid dates in tasks', () => {
178
178
// The original scheduled date was an illegal/invalid date.
179
179
// So it is simply given the new value of the same date as the reference date,
180
180
// which here is the due date.
181
-
expect(next!.scheduledDate!.isSame(moment('2022-02-28'))).toStrictEqual(true);// date was invalid, so is given the value of highst oriority supplied date
0 commit comments