Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alishaz-polymath committed Jan 22, 2025
1 parent 0c2a90f commit 10dde4c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { constantsScenarios } from "@calcom/lib/__mocks__/constants";
import { describe, it, expect, beforeEach, vi } from "vitest";

import type { Profile } from "@calcom/prisma/client";
import { CreationSource } from "@calcom/prisma/enums";
import { IdentityProvider, MembershipRole } from "@calcom/prisma/enums";

import { TRPCError } from "@trpc/server";
Expand Down Expand Up @@ -164,6 +165,7 @@ describe("inviteMemberHandler", () => {
};

expect(inviteMemberUtilsMock.handleNewUsersInvites).toHaveBeenCalledWith({
creationSource: CreationSource.WEBAPP,
invitationsForNewUsers: allExpectedInvitations,
team: retValueOfGetTeamOrThrowError,
orgConnectInfoByUsernameOrEmail: expectedConnectionInfoMap,
Expand Down Expand Up @@ -276,6 +278,7 @@ describe("inviteMemberHandler", () => {
};

expect(inviteMemberUtilsMock.handleNewUsersInvites).toHaveBeenCalledWith({
creationSource: CreationSource.WEBAPP,
invitationsForNewUsers: allExpectedInvitations.slice(1),
team: retValueOfGetTeamOrThrowError,
orgConnectInfoByUsernameOrEmail: expectedConnectionInfoMap,
Expand Down

0 comments on commit 10dde4c

Please sign in to comment.