test: format models list alias coverage

This commit is contained in:
mneves75 authored and Peter Steinberger committed 2026-01-07 05:31:01 +01:00
1 parent 3550dc294d
commit 8187baab18
1 file changed
+12 -3
+12 -3
View File
@@ -149,7 +149,10 @@ describe("models list/status", () => {
});
const { modelsListCommand } = await import("./models/list.js");
await modelsListCommand({ all: true, provider: "z.ai", json: true }, runtime);
await modelsListCommand(
{ all: true, provider: "z.ai", json: true },
runtime,
);
expect(runtime.log).toHaveBeenCalledTimes(1);
const payload = JSON.parse(String(runtime.log.mock.calls[0]?.[0]));
@@ -186,7 +189,10 @@ describe("models list/status", () => {
});
const { modelsListCommand } = await import("./models/list.js");
await modelsListCommand({ all: true, provider: "Z.AI", json: true }, runtime);
await modelsListCommand(
{ all: true, provider: "Z.AI", json: true },
runtime,
);
expect(runtime.log).toHaveBeenCalledTimes(1);
const payload = JSON.parse(String(runtime.log.mock.calls[0]?.[0]));
@@ -223,7 +229,10 @@ describe("models list/status", () => {
});
const { modelsListCommand } = await import("./models/list.js");
await modelsListCommand({ all: true, provider: "z-ai", json: true }, runtime);
await modelsListCommand(
{ all: true, provider: "z-ai", json: true },
runtime,
);
expect(runtime.log).toHaveBeenCalledTimes(1);
const payload = JSON.parse(String(runtime.log.mock.calls[0]?.[0]));