Skip to content

Commit a4e6d00

Browse files
committed
test: tighten qqbot quote assertion
1 parent 3eedeab commit a4e6d00

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extensions/qqbot/src/engine/gateway/inbound-pipeline.self-echo.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,10 @@ describe("buildInboundContext bot self-echo suppression", () => {
271271
expect(getRefIndexMock).toHaveBeenCalledWith("REF_BOT");
272272
expect(formatRefEntryForAgentMock).toHaveBeenCalled();
273273
expect(inbound.blocked).toBe(false);
274-
expect(inbound.replyTo).toMatchObject({
274+
expect(inbound.replyTo).toStrictEqual({
275275
id: "REF_BOT",
276276
body: "bot reply",
277+
sender: "qq-main",
277278
isQuote: true,
278279
});
279280
expect(deps.startTyping).toHaveBeenCalledTimes(1);

0 commit comments

Comments
 (0)