test: tighten qqbot attachment assertions · openclaw/openclaw@5e43abe
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 |
|---|
@@ -41,10 +41,15 @@ describe("engine/gateway/inbound-attachments", () => {
|
41 | 41 | it("returns an empty result when no attachments are present", async () => { |
42 | 42 | await expect( |
43 | 43 | processAttachments(undefined, { accountId: "qq", cfg: {}, audioConvert }), |
44 | | -).resolves.toMatchObject({ |
| 44 | +).resolves.toStrictEqual({ |
45 | 45 | attachmentInfo: "", |
46 | 46 | imageUrls: [], |
| 47 | +imageMediaTypes: [], |
47 | 48 | voiceAttachmentPaths: [], |
| 49 | +voiceAttachmentUrls: [], |
| 50 | +voiceAsrReferTexts: [], |
| 51 | +voiceTranscripts: [], |
| 52 | +voiceTranscriptSources: [], |
48 | 53 | attachmentLocalPaths: [], |
49 | 54 | }); |
50 | 55 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。