fix tests

This commit is contained in:
Timo K
2026-01-07 17:46:39 +01:00
parent a5a4bb2b82
commit 385f63e83e
2 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ describe("getSFUConfigWithOpenID", () => {
"!example_room_id",
);
} 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",
);
void (await fetchMock.flush());
@@ -107,7 +107,7 @@ describe("getSFUConfigWithOpenID", () => {
"mock_delay_id",
);
} 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",
);
void (await fetchMock.flush());
@@ -160,7 +160,7 @@ describe("getSFUConfigWithOpenID", () => {
"mock_delay_id",
);
} 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",
);
void (await fetchMock.flush());

View File

@@ -259,7 +259,7 @@ describe("Start connection states", () => {
capturedState.cause instanceof Error
) {
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(
livekitFocus.livekit_alias,