Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Apr 26, 2024
1 parent c2f101b commit dd15bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/queues/tasks/InviteReminderTask.test.ts
@@ -1,4 +1,4 @@
import { subDays } from "date-fns";
import { subHours } from "date-fns";
import InviteReminderEmail from "@server/emails/templates/InviteReminderEmail";
import { buildInvite } from "@server/test/factories";
import InviteReminderTask from "./InviteReminderTask";
Expand All @@ -9,7 +9,7 @@ describe("InviteReminderTask", () => {

// too old
await buildInvite({
createdAt: subDays(new Date(), 3.5),
createdAt: subHours(new Date(), 84),
});

// too new
Expand All @@ -19,7 +19,7 @@ describe("InviteReminderTask", () => {

// should send reminder
await buildInvite({
createdAt: subDays(new Date(), 2.5),
createdAt: subHours(new Date(), 60),
});

const task = new InviteReminderTask();
Expand Down

0 comments on commit dd15bb4

Please sign in to comment.