test: flatten malformed config values · openclaw/openclaw@bfc5d99
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1004,9 +1004,9 @@ describe("config view", () => {
|
1004 | 1004 | const input = container.querySelector<HTMLInputElement>(".cfg-input"); |
1005 | 1005 | expect(input).toBeInstanceOf(HTMLInputElement); |
1006 | 1006 | expect(input?.readOnly).toBe(false); |
1007 | | -expect(input?.value).toContain("malformed"); |
| 1007 | +expect(input?.value).toBe('{ "malformed": true}'); |
1008 | 1008 | expect(input?.value).not.toBe("[object Object]"); |
1009 | | -expect(input?.placeholder).not.toContain("Structured value (SecretRef)"); |
| 1009 | +expect(input?.placeholder).toBe(""); |
1010 | 1010 | |
1011 | 1011 | if (!input) { |
1012 | 1012 | return; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。