fix tests and remove duplicated mocks.

This commit is contained in:
Timo K
2026-01-07 13:26:37 +01:00
parent 556a87d141
commit 83d04ac122
9 changed files with 103 additions and 112 deletions

View File

@@ -154,6 +154,7 @@ describe("LocalTransport", () => {
await flushPromises();
// final
expect(localTransport$.value).toStrictEqual({
forceOldJwtEndpoint: false,
livekit_alias: "!room:example.org",
livekit_service_url: "https://lk.example.org",
type: "livekit",
@@ -195,6 +196,7 @@ describe("LocalTransport", () => {
await flushPromises();
// final
expect(localTransport$.value).toStrictEqual({
forceOldJwtEndpoint: false,
livekit_alias: "!example_room_id",
livekit_service_url: "https://lk.example.org",
type: "livekit",
@@ -247,6 +249,7 @@ describe("LocalTransport", () => {
expect(localTransport$.value).toBe(null);
await flushPromises();
expect(localTransport$.value).toStrictEqual({
forceOldJwtEndpoint: false,
livekit_alias: "!example_room_id",
livekit_service_url: "https://lk.example.org",
type: "livekit",
@@ -259,6 +262,7 @@ describe("LocalTransport", () => {
expect(localTransport$.value).toBe(null);
await flushPromises();
expect(localTransport$.value).toStrictEqual({
forceOldJwtEndpoint: false,
livekit_alias: "!example_room_id",
livekit_service_url: "https://lk.example.org",
type: "livekit",
@@ -273,6 +277,7 @@ describe("LocalTransport", () => {
expect(localTransport$.value).toBe(null);
await flushPromises();
expect(localTransport$.value).toStrictEqual({
forceOldJwtEndpoint: false,
livekit_alias: "!example_room_id",
livekit_service_url: "https://lk.example.org",
type: "livekit",
@@ -304,6 +309,7 @@ describe("LocalTransport", () => {
expect(localTransport$.value).toBe(null);
await flushPromises();
expect(localTransport$.value).toStrictEqual({
forceOldJwtEndpoint: false,
livekit_alias: "!example_room_id",
livekit_service_url: "https://lk.example.org",
type: "livekit",