fix: random test failure when booking are on same date (#10581)

This commit is contained in:
Omar López
2023-08-03 22:33:49 +00:00
committed by GitHub
parent c7d8d435f1
commit 710bfc0d7e
+9 -6
View File
@@ -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"),
},
],
});