Files
calendar/packages/features/get-cal-video-reference.test.ts
T
7ec3d04acc test: add test for invalid cal video (#13103)
* test: add test for invalid cal video

* chore: add confirm

* chore: fix type error

* chore: update code

* test: add unit test

* chore: type error

* chore

* chore: type

* chore: fix test

* chore

---------

Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
2024-01-15 15:07:58 -05: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",
});
});
});