Skip to content

Commit

Permalink
Fixed Failing Test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Community-Programmer committed Jan 10, 2024
1 parent 97cd4ac commit 42c8bf2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/resolvers/Mutation/createEvent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ describe("resolvers -> Mutation -> createEvent", () => {
organizationId: testOrganization?.id,
allDay: false,
description: "newDescription",
endDate: new Date().toUTCString(),
endDate: new Date("2023-01-29T00:00:00Z"),
endTime: new Date().toUTCString(),
isPublic: false,
isRegisterable: false,
latitude: 1,
longitude: 1,
location: "newLocation",
recurring: false,
startDate: new Date().toUTCString(),
startDate: new Date("2023-01-01T00:00:00Z"),
startTime: new Date().toUTCString(),
title: "newTitle",
recurrance: "ONCE",
Expand Down Expand Up @@ -206,6 +206,7 @@ describe("resolvers -> Mutation -> createEvent", () => {
);

const recurringEvents = await Event.find({
recurring: false,
recurrance: "ONCE",
}).lean();

Expand Down Expand Up @@ -252,15 +253,15 @@ describe("resolvers -> Mutation -> createEvent", () => {
organizationId: testOrganization?.id,
allDay: false,
description: "newDescription",
endDate: new Date().toUTCString(),
endDate: new Date("2023-01-29T00:00:00Z"),
endTime: new Date().toUTCString(),
isPublic: false,
isRegisterable: false,
latitude: 1,
longitude: 1,
location: "newLocation",
recurring: true,
startDate: new Date().toUTCString(),
startDate: new Date("2023-01-01T00:00:00Z"),
startTime: new Date().toUTCString(),
title: "newTitle",
recurrance: "ONCE",
Expand Down

0 comments on commit 42c8bf2

Please sign in to comment.