* 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>
30 lines
658 B
TypeScript
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",
|
|
});
|
|
});
|
|
});
|