mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 08:04:04 +00:00
test: guard cli null helpers
This commit is contained in:
@@ -116,8 +116,9 @@ describe("models cli", () => {
|
||||
for (const [key, value] of Object.entries(expected)) {
|
||||
expect(options?.[key]).toEqual(value);
|
||||
}
|
||||
expect(typeof context).toBe("object");
|
||||
expect(context).not.toBeNull();
|
||||
if (!context || typeof context !== "object") {
|
||||
throw new Error("expected command context");
|
||||
}
|
||||
}
|
||||
|
||||
it("registers github-copilot login command", async () => {
|
||||
|
||||
Reference in New Issue
Block a user