2
0
Files
cal/calcom/packages/features/get-cal-video-reference.test.ts
2024-08-09 00:39:27 +02:00

30 lines
658 B
TypeScript

import { describe, expect, it } from "vitest";
import { getCalVideoReference } from "./get-cal-video-reference";
describe("Cal Video", () => {
it("should load latest cal video reference", () => {
expect(
getCalVideoReference([
{
uid: "UID1",
type: "daily_video",
meetingUrl: "ID1",
meetingPassword: "P1",
},
{
uid: "UID2",
type: "daily_video",
meetingUrl: "ID2",
meetingPassword: "P2",
},
])
).toEqual({
uid: "UID2",
type: "daily_video",
meetingUrl: "ID2",
meetingPassword: "P2",
});
});
});