test(lotus): oxlint-clean mock in the LocalTransport refusal test
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
This commit is contained in:
co-authored by
Claude Opus 5
parent
667230f6e3
commit
2fafa3cf36
@@ -132,8 +132,11 @@ describe("LocalTransport", () => {
|
|||||||
livekit: { livekit_service_url: "https://lk.example.org" },
|
livekit: { livekit_service_url: "https://lk.example.org" },
|
||||||
});
|
});
|
||||||
const refused = new SFUTokenRefusedError("This voice channel is full.");
|
const refused = new SFUTokenRefusedError("This voice channel is full.");
|
||||||
vi.spyOn(openIDSFU, "getSFUConfigWithOpenID").mockImplementation(() =>
|
vi.spyOn(openIDSFU, "getSFUConfigWithOpenID").mockImplementation(
|
||||||
Promise.reject(refused),
|
async () => {
|
||||||
|
await Promise.resolve();
|
||||||
|
throw refused;
|
||||||
|
},
|
||||||
);
|
);
|
||||||
const errors: Error[] = [];
|
const errors: Error[] = [];
|
||||||
const { active$ } = createLocalTransport$({
|
const { active$ } = createLocalTransport$({
|
||||||
|
|||||||
Reference in New Issue
Block a user