From bcc2b8cffadb8a0eab99b0c9e2c6bad385a4e0d5 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 22:15:22 +0100 Subject: [PATCH] test: place pricing status row --- src/commands/status.command-report-data.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/status.command-report-data.test.ts b/src/commands/status.command-report-data.test.ts index 557fbaeac30..e72fa31162a 100644 --- a/src/commands/status.command-report-data.test.ts +++ b/src/commands/status.command-report-data.test.ts @@ -85,10 +85,13 @@ describe("buildStatusCommandReportData", () => { }), ); - expect(result.overviewRows).toContainEqual({ + const modelPricingIndex = result.overviewRows.findIndex((row) => row.Item === "Model pricing"); + expect(modelPricingIndex).toBeGreaterThanOrEqual(0); + expect(result.overviewRows[modelPricingIndex]).toStrictEqual({ Item: "Model pricing", Value: "warn(warning · optional pricing refresh degraded · OpenRouter pricing fetch failed: TypeError: fetch failed)", }); + expect(result.overviewRows[modelPricingIndex + 1]?.Item).toBe("Memory"); }); });