test: tighten backup asset kind assertion · openclaw/openclaw@95b936f
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -126,8 +126,7 @@ describe("backup commands", () => {
|
126 | 126 | |
127 | 127 | function expectOnlyAssetKind(assets: Array<{ kind: string }>, kind: string) { |
128 | 128 | expect(assets).toHaveLength(1); |
129 | | -const [asset] = assets; |
130 | | -expect(asset).toMatchObject({ kind }); |
| 129 | +expect(assets.map((asset) => asset.kind)).toStrictEqual([kind]); |
131 | 130 | } |
132 | 131 | |
133 | 132 | it("collapses default config, credentials, and workspace into the state backup root", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。