From 5e43abe3787bb6ea1b830707d6f819b10df034d8 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 10:49:05 +0100 Subject: [PATCH] test: tighten qqbot attachment assertions --- .../qqbot/src/engine/gateway/inbound-attachments.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extensions/qqbot/src/engine/gateway/inbound-attachments.test.ts b/extensions/qqbot/src/engine/gateway/inbound-attachments.test.ts index 3d946a66105f..0bb42a603319 100644 --- a/extensions/qqbot/src/engine/gateway/inbound-attachments.test.ts +++ b/extensions/qqbot/src/engine/gateway/inbound-attachments.test.ts @@ -41,10 +41,15 @@ describe("engine/gateway/inbound-attachments", () => { it("returns an empty result when no attachments are present", async () => { await expect( processAttachments(undefined, { accountId: "qq", cfg: {}, audioConvert }), - ).resolves.toMatchObject({ + ).resolves.toStrictEqual({ attachmentInfo: "", imageUrls: [], + imageMediaTypes: [], voiceAttachmentPaths: [], + voiceAttachmentUrls: [], + voiceAsrReferTexts: [], + voiceTranscripts: [], + voiceTranscriptSources: [], attachmentLocalPaths: [], }); });