mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-21 07:54:46 +00:00
test: guard cli null helpers
This commit is contained in:
@@ -1872,7 +1872,9 @@ describe("capability cli", () => {
|
||||
argv: ["capability", "model", "auth", "logout", "--provider", "openai", "--json"],
|
||||
});
|
||||
|
||||
expect(updatedStore).not.toBeNull();
|
||||
if (updatedStore === null) {
|
||||
throw new Error("expected updated auth store");
|
||||
}
|
||||
const storeSnapshot = updatedStore as unknown as Record<string, any>;
|
||||
expect(storeSnapshot.profiles).toEqual({
|
||||
"anthropic:default": { id: "anthropic:default" },
|
||||
|
||||
Reference in New Issue
Block a user