test: tighten msteams pending upload assertion · openclaw/openclaw@96acbf0
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -269,14 +269,16 @@ describe("msteams pending uploads", () => {
|
269 | 269 | }); |
270 | 270 | |
271 | 271 | expect(getPendingUploadCount()).toBe(1); |
272 | | -expect(getPendingUpload(id)).toEqual( |
273 | | -expect.objectContaining({ |
274 | | - id, |
275 | | -filename: "hello.txt", |
276 | | -contentType: "text/plain", |
277 | | -conversationId: "conv-1", |
278 | | -}), |
279 | | -); |
| 272 | +const pendingUpload = getPendingUpload(id); |
| 273 | +expect(pendingUpload).toEqual({ |
| 274 | + id, |
| 275 | +buffer: Buffer.from("hello"), |
| 276 | +filename: "hello.txt", |
| 277 | +contentType: "text/plain", |
| 278 | +conversationId: "conv-1", |
| 279 | +createdAt: pendingUpload?.createdAt, |
| 280 | +}); |
| 281 | +expect(typeof pendingUpload?.createdAt).toBe("number"); |
280 | 282 | }); |
281 | 283 | |
282 | 284 | it("removes uploads explicitly and ignores empty ids", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。