From 301e63a0d6f2ae8aca9cfa14530c04edc23eecc0 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 02:33:09 +0100 Subject: [PATCH] test: tighten typing ttl warning assertion --- src/channels/typing.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/channels/typing.test.ts b/src/channels/typing.test.ts index 7f78c9e2eef..6dcd28c69d3 100644 --- a/src/channels/typing.test.ts +++ b/src/channels/typing.test.ts @@ -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(); });