test: tighten qqbot quote assertion · openclaw/openclaw@a4e6d00
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/qqbot/src/engine/gateway
| Original file line number | Diff line number | Diff line change |
|---|
@@ -271,9 +271,10 @@ describe("buildInboundContext bot self-echo suppression", () => {
|
271 | 271 | expect(getRefIndexMock).toHaveBeenCalledWith("REF_BOT"); |
272 | 272 | expect(formatRefEntryForAgentMock).toHaveBeenCalled(); |
273 | 273 | expect(inbound.blocked).toBe(false); |
274 | | -expect(inbound.replyTo).toMatchObject({ |
| 274 | +expect(inbound.replyTo).toStrictEqual({ |
275 | 275 | id: "REF_BOT", |
276 | 276 | body: "bot reply", |
| 277 | +sender: "qq-main", |
277 | 278 | isQuote: true, |
278 | 279 | }); |
279 | 280 | expect(deps.startTyping).toHaveBeenCalledTimes(1); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。