test: specify memory append result · openclaw/openclaw@0fd1ed9
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -238,9 +238,12 @@ describe("FS tools with workspaceOnly=false", () => {
|
238 | 238 | content: "new note", |
239 | 239 | }); |
240 | 240 | expect(hasToolError(result)).toBe(false); |
241 | | -expect(result.content).toContainEqual({ |
242 | | -type: "text", |
243 | | -text: "Appended content to memory/2026-03-07.md.", |
| 241 | +expect(result).toStrictEqual({ |
| 242 | +content: [{ type: "text", text: "Appended content to memory/2026-03-07.md." }], |
| 243 | +details: { |
| 244 | +path: "memory/2026-03-07.md", |
| 245 | +appendOnly: true, |
| 246 | +}, |
244 | 247 | }); |
245 | 248 | await expect(fs.readFile(allowedAbsolutePath, "utf-8")).resolves.toBe("seed\nnew note"); |
246 | 249 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。