test: tighten storage doctor assertions · openclaw/openclaw@eecef7e
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -174,7 +174,8 @@ describe("doctor command", () => {
|
174 | 174 | throw new Error("Expected doctor to write migrated auth profiles"); |
175 | 175 | } |
176 | 176 | const profiles = (written.auth as { profiles: Record<string, unknown> }).profiles; |
177 | | -expect(profiles["anthropic:me@example.com"]).toEqual(expect.any(Object)); |
| 177 | +expect(profiles).toHaveProperty("anthropic:me@example.com"); |
| 178 | +expect(profiles["anthropic:me@example.com"]).not.toBeNull(); |
178 | 179 | expect(profiles["anthropic:default"]).toBeUndefined(); |
179 | 180 | }, 30_000); |
180 | 181 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。