mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 14:40:42 +00:00
test: tighten storage doctor assertions
This commit is contained in:
@@ -174,7 +174,8 @@ describe("doctor command", () => {
|
||||
throw new Error("Expected doctor to write migrated auth profiles");
|
||||
}
|
||||
const profiles = (written.auth as { profiles: Record<string, unknown> }).profiles;
|
||||
expect(profiles["anthropic:me@example.com"]).toEqual(expect.any(Object));
|
||||
expect(profiles).toHaveProperty("anthropic:me@example.com");
|
||||
expect(profiles["anthropic:me@example.com"]).not.toBeNull();
|
||||
expect(profiles["anthropic:default"]).toBeUndefined();
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user