test: record bootstrap signature files · openclaw/openclaw@3049576
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -221,11 +221,14 @@ describe("bootstrap prompt warnings", () => {
|
221 | 221 | }; |
222 | 222 | expect(signature.bootstrapMaxChars).toBe(120); |
223 | 223 | expect(signature.bootstrapTotalMaxChars).toBe(200); |
224 | | -expect(signature.files).toHaveLength(1); |
225 | | -expect(signature.files?.[0]?.path).toBe("/tmp/AGENTS.md"); |
226 | | -expect(signature.files?.[0]?.rawChars).toBe(150); |
227 | | -expect(signature.files?.[0]?.injectedChars).toBe(100); |
228 | | -expect(signature.files?.[0]?.causes).toStrictEqual(["per-file-limit"]); |
| 224 | +expect(signature.files).toStrictEqual([ |
| 225 | +{ |
| 226 | +causes: ["per-file-limit"], |
| 227 | +injectedChars: 100, |
| 228 | +path: "/tmp/AGENTS.md", |
| 229 | +rawChars: 150, |
| 230 | +}, |
| 231 | +]); |
229 | 232 | expect(first.lines.join("\n")).toContain("AGENTS.md"); |
230 | 233 | |
231 | 234 | const second = buildBootstrapPromptWarning({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。