Skip to content

Commit

Permalink
Fixed Test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Community-Programmer committed Jan 10, 2024
1 parent 42c8bf2 commit cf83b1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/resolvers/Mutation/createEvent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ describe("resolvers -> Mutation -> createEvent", () => {
longitude: 1,
location: "newLocation",
recurring: true,
startDate: new Date("2023-01-01T00:00:00Z"),
startDate: new Date("2023-01-02T00:00:00Z"),
startTime: new Date().toUTCString(),
title: "newTitle",
recurrance: "ONCE",
Expand Down Expand Up @@ -297,6 +297,7 @@ describe("resolvers -> Mutation -> createEvent", () => {
const recurringEvents = await Event.find({
recurring: true,
recurrance: "ONCE",
startDate: "2023-01-02T00:00:00Z",
}).lean();

expect(recurringEvents).toBeDefined();
Expand Down

0 comments on commit cf83b1c

Please sign in to comment.