fix tests
This commit is contained in:
@@ -25,7 +25,7 @@ function createMockLivekitRoom(
|
|||||||
wsUrl: string,
|
wsUrl: string,
|
||||||
serverInfo: object,
|
serverInfo: object,
|
||||||
metadata: string,
|
metadata: string,
|
||||||
): { isLocal: boolean; url: string; room: LivekitRoom } {
|
): { isLocal: boolean; url: string; room: LivekitRoom; livekitAlias: string } {
|
||||||
const mockRoom = {
|
const mockRoom = {
|
||||||
serverInfo,
|
serverInfo,
|
||||||
metadata,
|
metadata,
|
||||||
@@ -38,6 +38,7 @@ function createMockLivekitRoom(
|
|||||||
isLocal: true,
|
isLocal: true,
|
||||||
url: wsUrl,
|
url: wsUrl,
|
||||||
room: mockRoom,
|
room: mockRoom,
|
||||||
|
livekitAlias: "TestAlias",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,6 +62,7 @@ describe("DeveloperSettingsTab", () => {
|
|||||||
room: LivekitRoom;
|
room: LivekitRoom;
|
||||||
url: string;
|
url: string;
|
||||||
isLocal?: boolean;
|
isLocal?: boolean;
|
||||||
|
livekitAlias: string;
|
||||||
}[] = [
|
}[] = [
|
||||||
createMockLivekitRoom(
|
createMockLivekitRoom(
|
||||||
"wss://local-sfu.example.org",
|
"wss://local-sfu.example.org",
|
||||||
@@ -69,6 +71,7 @@ describe("DeveloperSettingsTab", () => {
|
|||||||
),
|
),
|
||||||
{
|
{
|
||||||
isLocal: false,
|
isLocal: false,
|
||||||
|
livekitAlias: "TestAlias2",
|
||||||
url: "wss://remote-sfu.example.org",
|
url: "wss://remote-sfu.example.org",
|
||||||
room: {
|
room: {
|
||||||
localParticipant: { identity: "localParticipantIdentity" },
|
localParticipant: { identity: "localParticipantIdentity" },
|
||||||
|
|||||||
@@ -355,6 +355,10 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
|
|||||||
<h4>
|
<h4>
|
||||||
LiveKit SFU: wss://local-sfu.example.org
|
LiveKit SFU: wss://local-sfu.example.org
|
||||||
</h4>
|
</h4>
|
||||||
|
<p>
|
||||||
|
LivekitAlias:
|
||||||
|
TestAlias
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
ws-url:
|
ws-url:
|
||||||
wss://local-sfu.example.org/
|
wss://local-sfu.example.org/
|
||||||
@@ -393,6 +397,10 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
|
|||||||
<h4>
|
<h4>
|
||||||
LiveKit SFU: wss://remote-sfu.example.org
|
LiveKit SFU: wss://remote-sfu.example.org
|
||||||
</h4>
|
</h4>
|
||||||
|
<p>
|
||||||
|
LivekitAlias:
|
||||||
|
TestAlias2
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
LiveKit Server Info
|
LiveKit Server Info
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user