Skip to content

Commit bf273c4

Browse files
committed
test: tighten inworld tts failure assertion
1 parent b81414b commit bf273c4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extensions/inworld/tts.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ describe("inworldTTS", () => {
335335
it("releases the guarded dispatcher after failure", async () => {
336336
const { release } = queueGuardedResponse(new Response("fail", { status: 500 }));
337337

338-
await expect(inworldTTS({ text: "test", apiKey: "test-key" })).rejects.toThrow();
338+
await expect(inworldTTS({ text: "test", apiKey: "test-key" })).rejects.toThrow(
339+
"Inworld TTS API error (500): fail",
340+
);
339341
expect(release).toHaveBeenCalledTimes(1);
340342
});
341343
});

0 commit comments

Comments
 (0)