From 710bfc0d7e718d3f90462ee6e081c46bac453075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Thu, 3 Aug 2023 15:33:49 -0700 Subject: [PATCH] fix: random test failure when booking are on same date (#10581) --- apps/web/test/lib/team-event-types.test.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/web/test/lib/team-event-types.test.ts b/apps/web/test/lib/team-event-types.test.ts index 4e5506f5c0..608fc151f4 100644 --- a/apps/web/test/lib/team-event-types.test.ts +++ b/apps/web/test/lib/team-event-types.test.ts @@ -13,18 +13,21 @@ it("can find lucky user with maximize availability", async () => { email: "test@example.com", bookings: [ { - createdAt: new Date("2022-01-25"), + createdAt: new Date("2022-01-25T05:30:00.000Z"), + }, + { + createdAt: new Date("2022-01-25T06:30:00.000Z"), }, ], }); const user2 = buildUser({ - id: 1, - username: "test", - name: "Test User", - email: "test@example.com", + id: 2, + username: "test2", + name: "Test User 2", + email: "tes2t@example.com", bookings: [ { - createdAt: new Date("2022-01-25"), + createdAt: new Date("2022-01-25T04:30:00.000Z"), }, ], });