Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
meetulr committed Feb 9, 2024
1 parent f06a72c commit abf5d91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export const generateRecurringEventInstances = async ({
endDate: formattedInstanceDate,
recurring: true,
isBaseRecurringEvent: false,
recurrenceRuleId: recurrenceRuleId,
baseRecurringEventId: baseRecurringEventId,
recurrenceRuleId,
baseRecurringEventId,
creatorId: currentUserId,
admins: [currentUserId],
organization: organizationId,
Expand Down
6 changes: 3 additions & 3 deletions tests/resolvers/Mutation/createEvent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ describe("resolvers -> Mutation -> createEvent", () => {
);

let startDate = new Date();
startDate = addMonths(startDate, 3);
startDate = addMonths(startDate, 1);

const args: MutationCreateEventArgs = {
data: {
Expand All @@ -423,7 +423,7 @@ describe("resolvers -> Mutation -> createEvent", () => {
recurrenceRuleData: {
frequency: "WEEKLY",
weekdays: ["TH", "SA"],
count: 10,
count: 5,
},
};

Expand Down Expand Up @@ -471,7 +471,7 @@ describe("resolvers -> Mutation -> createEvent", () => {
}).lean();

expect(recurringEvents).toBeDefined();
expect(recurringEvents).toHaveLength(10);
expect(recurringEvents).toHaveLength(5);

const attendeeExists = await EventAttendee.exists({
userId: testUser?._id,
Expand Down

0 comments on commit abf5d91

Please sign in to comment.