mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
test(reminders): pin the snooze guard of the 0355 repair on its own
The snoozed fixture sat inside a week of the send, so the one-week clause already excluded it and dropping the snooze guard from the migration left the suite green. Snooze it further out, a minute after the send, so only the snooze cursor tells it apart from a roll-on.
This commit is contained in:
1 parent
8b78e5486d
commit
4d4a527c0d
1 file changed
+5
-2
@@ -275,11 +275,14 @@ describe("migration 0355", () => {
|
||||
updatedAt: new Date("2026-09-26T07:02:00.000Z"),
|
||||
},
|
||||
{
|
||||
// Snoozed a minute after the send to a day well past a week out, so
|
||||
// only the snooze cursor tells it apart from a roll-on.
|
||||
id: "snoozed",
|
||||
data: {
|
||||
snoozedUntil: new Date("2026-10-03T07:00:00.000Z"),
|
||||
nextDueAt: new Date("2026-10-03T07:00:00.000Z"),
|
||||
snoozedUntil: new Date("2026-11-02T08:00:00.000Z"),
|
||||
nextDueAt: new Date("2026-11-02T08:00:00.000Z"),
|
||||
},
|
||||
updatedAt: new Date("2026-09-26T07:01:00.000Z"),
|
||||
},
|
||||
{
|
||||
// Edited two days after the send: the last write is not the roll-on.
|
||||
|
||||
Reference in new issue
Block a user