test: serialize config tuple baseline · openclaw/openclaw@f2ce07c
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -34,12 +34,28 @@ describe("config doc baseline", () => {
|
34 | 34 | "tupleValues", |
35 | 35 | ), |
36 | 36 | ); |
37 | | -const tupleEntry = new Map(entries.map((entry) => [entry.path, entry])).get("tupleValues.*"); |
38 | | - |
39 | | -expect(tupleEntry).toMatchObject({ |
40 | | -path: "tupleValues.*", |
41 | | -type: ["number", "string"], |
42 | | -enumValues: ["alpha", 42], |
43 | | -}); |
| 37 | +expect(entries).toEqual([ |
| 38 | +{ |
| 39 | +path: "tupleValues", |
| 40 | +kind: "core", |
| 41 | +type: "array", |
| 42 | +required: false, |
| 43 | +deprecated: false, |
| 44 | +sensitive: false, |
| 45 | +tags: [], |
| 46 | +hasChildren: true, |
| 47 | +}, |
| 48 | +{ |
| 49 | +path: "tupleValues.*", |
| 50 | +kind: "core", |
| 51 | +type: ["number", "string"], |
| 52 | +required: false, |
| 53 | +enumValues: ["alpha", 42], |
| 54 | +deprecated: false, |
| 55 | +sensitive: false, |
| 56 | +tags: [], |
| 57 | +hasChildren: false, |
| 58 | +}, |
| 59 | +]); |
44 | 60 | }); |
45 | 61 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。