mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +00:00
fixup tests
This commit is contained in:
@@ -28,11 +28,12 @@ import {
|
|||||||
} from "../../../utils/errors";
|
} from "../../../utils/errors";
|
||||||
import * as openIDSFU from "../../../livekit/openIDSFU";
|
import * as openIDSFU from "../../../livekit/openIDSFU";
|
||||||
import { customLivekitUrl } from "../../../settings/settings";
|
import { customLivekitUrl } from "../../../settings/settings";
|
||||||
|
import { testJWTToken } from "../../../utils/test-fixtures";
|
||||||
|
|
||||||
describe("LocalTransport", () => {
|
describe("LocalTransport", () => {
|
||||||
const openIdResponse: openIDSFU.SFUConfig = {
|
const openIdResponse: openIDSFU.SFUConfig = {
|
||||||
url: "https://lk.example.org",
|
url: "https://lk.example.org",
|
||||||
jwt: "jwt",
|
jwt: testJWTToken,
|
||||||
livekitAlias: "!example_room_id",
|
livekitAlias: "!example_room_id",
|
||||||
livekitIdentity: "@lk_user:ABCDEF",
|
livekitIdentity: "@lk_user:ABCDEF",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ import {
|
|||||||
} from "./MatrixLivekitMembers.ts";
|
} from "./MatrixLivekitMembers.ts";
|
||||||
import { createConnectionManager$ } from "./ConnectionManager.ts";
|
import { createConnectionManager$ } from "./ConnectionManager.ts";
|
||||||
import { membershipsAndTransports$ } from "../../SessionBehaviors.ts";
|
import { membershipsAndTransports$ } from "../../SessionBehaviors.ts";
|
||||||
|
import { testJWTToken } from "../../../utils/test-fixtures.ts";
|
||||||
|
|
||||||
// Test the integration of ConnectionManager and MatrixLivekitMerger
|
// Test the integration of ConnectionManager and MatrixLivekitMerger
|
||||||
|
|
||||||
@@ -85,7 +86,7 @@ beforeEach(() => {
|
|||||||
status: 200,
|
status: 200,
|
||||||
body: {
|
body: {
|
||||||
url: `wss://${domain}/livekit/sfu`,
|
url: `wss://${domain}/livekit/sfu`,
|
||||||
jwt: "ATOKEN",
|
jwt: testJWTToken,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user