From a4e6d00770f4b44209226ee9ccc505df66a27040 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 10:49:57 +0100 Subject: [PATCH] test: tighten qqbot quote assertion --- .../src/engine/gateway/inbound-pipeline.self-echo.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/qqbot/src/engine/gateway/inbound-pipeline.self-echo.test.ts b/extensions/qqbot/src/engine/gateway/inbound-pipeline.self-echo.test.ts index 874e4cacf8fc..d1c9330dfc04 100644 --- a/extensions/qqbot/src/engine/gateway/inbound-pipeline.self-echo.test.ts +++ b/extensions/qqbot/src/engine/gateway/inbound-pipeline.self-echo.test.ts @@ -271,9 +271,10 @@ describe("buildInboundContext bot self-echo suppression", () => { expect(getRefIndexMock).toHaveBeenCalledWith("REF_BOT"); expect(formatRefEntryForAgentMock).toHaveBeenCalled(); expect(inbound.blocked).toBe(false); - expect(inbound.replyTo).toMatchObject({ + expect(inbound.replyTo).toStrictEqual({ id: "REF_BOT", body: "bot reply", + sender: "qq-main", isQuote: true, }); expect(deps.startTyping).toHaveBeenCalledTimes(1);