test: capture media duplicate guidance · openclaw/openclaw@6e32c06
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -49,7 +49,12 @@ describe("createMusicGenerateTool status actions", () => {
|
49 | 49 | const result = createMusicGenerateDuplicateGuardResult("agent:main:discord:direct:123"); |
50 | 50 | |
51 | 51 | const [content] = result?.content ?? []; |
52 | | -expect(result?.content).toStrictEqual([expect.objectContaining({ type: "text" })]); |
| 52 | +expect(result?.content).toStrictEqual([ |
| 53 | +{ |
| 54 | +type: "text", |
| 55 | +text: "Music generation task task-active is already running with google.\nProgress: Generating music.\nDo not call music_generate again for this request. Wait for the completion event; I will post the finished music here.", |
| 56 | +}, |
| 57 | +]); |
53 | 58 | const text = content?.text ?? ""; |
54 | 59 | expect(text).toContain("Music generation task task-active is already running with google."); |
55 | 60 | expect(text).toContain("Do not call music_generate again for this request."); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -49,7 +49,12 @@ describe("createVideoGenerateTool status actions", () => {
|
49 | 49 | const result = createVideoGenerateDuplicateGuardResult("agent:main:discord:direct:123"); |
50 | 50 | |
51 | 51 | const [content] = result?.content ?? []; |
52 | | -expect(result?.content).toStrictEqual([expect.objectContaining({ type: "text" })]); |
| 52 | +expect(result?.content).toStrictEqual([ |
| 53 | +{ |
| 54 | +type: "text", |
| 55 | +text: "Video generation task task-active is already running with openai.\nProgress: Generating video.\nDo not call video_generate again for this request. Wait for the completion event; I will post the finished video here.", |
| 56 | +}, |
| 57 | +]); |
53 | 58 | const text = content?.text ?? ""; |
54 | 59 | expect(text).toContain("Video generation task task-active is already running with openai."); |
55 | 60 | expect(text).toContain("Do not call video_generate again for this request."); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。