test: dedupe flows mock read

This commit is contained in:
Peter Steinberger
2026-05-13 01:22:28 +01:00
parent ccb9c68487
commit 532fea836b

View File

@@ -88,7 +88,7 @@ describe("flows commands", () => {
const runtime = createRuntime();
await flowsListCommand({ json: true, status: "blocked" }, runtime);
const payload = JSON.parse(String(vi.mocked(runtime.log).mock.calls.at(0)?.[0]));
const payload = JSON.parse(String(vi.mocked(runtime.log).mock.calls[0]?.[0]));
expect(payload).toStrictEqual({
count: 1,