fix tests
This commit is contained in:
@@ -74,7 +74,7 @@ describe("getSFUConfigWithOpenID", () => {
|
|||||||
"!example_room_id",
|
"!example_room_id",
|
||||||
);
|
);
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
expect(((ex as Error).cause as Error).message).toEqual(
|
expect((ex as Error).message).toEqual(
|
||||||
"SFU Config fetch failed with status code 500",
|
"SFU Config fetch failed with status code 500",
|
||||||
);
|
);
|
||||||
void (await fetchMock.flush());
|
void (await fetchMock.flush());
|
||||||
@@ -107,7 +107,7 @@ describe("getSFUConfigWithOpenID", () => {
|
|||||||
"mock_delay_id",
|
"mock_delay_id",
|
||||||
);
|
);
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
expect(((ex as Error).cause as Error).message).toEqual(
|
expect((ex as Error).message).toEqual(
|
||||||
"SFU Config fetch failed with status code 500",
|
"SFU Config fetch failed with status code 500",
|
||||||
);
|
);
|
||||||
void (await fetchMock.flush());
|
void (await fetchMock.flush());
|
||||||
@@ -160,7 +160,7 @@ describe("getSFUConfigWithOpenID", () => {
|
|||||||
"mock_delay_id",
|
"mock_delay_id",
|
||||||
);
|
);
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
expect(((ex as Error).cause as Error).message).toEqual(
|
expect((ex as Error).message).toEqual(
|
||||||
"SFU Config fetch failed with status code 500",
|
"SFU Config fetch failed with status code 500",
|
||||||
);
|
);
|
||||||
void (await fetchMock.flush());
|
void (await fetchMock.flush());
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ describe("Start connection states", () => {
|
|||||||
capturedState.cause instanceof Error
|
capturedState.cause instanceof Error
|
||||||
) {
|
) {
|
||||||
expect(capturedState.cause.message).toContain(
|
expect(capturedState.cause.message).toContain(
|
||||||
"SFU Config fetch failed with exception",
|
"SFU Config fetch failed with status code 500",
|
||||||
);
|
);
|
||||||
expect(connection.transport.livekit_alias).toEqual(
|
expect(connection.transport.livekit_alias).toEqual(
|
||||||
livekitFocus.livekit_alias,
|
livekitFocus.livekit_alias,
|
||||||
|
|||||||
Reference in New Issue
Block a user