test: tighten typing ttl warning assertion

This commit is contained in:
Shakker
2026-05-11 02:33:09 +01:00
parent a213681101
commit 301e63a0d6

View File

@@ -232,7 +232,9 @@ describe("createTypingCallbacks", () => {
// Should auto-stop
expect(stop).toHaveBeenCalledTimes(1);
expect(consoleWarn).toHaveBeenCalledWith(expect.stringContaining("TTL exceeded"));
expect(consoleWarn).toHaveBeenCalledWith(
"[typing] TTL exceeded (10000ms), auto-stopping typing indicator",
);
consoleWarn.mockRestore();
});