test: place pricing status row

This commit is contained in:
Shakker
2026-05-11 22:15:22 +01:00
parent 0ce6816ed3
commit bcc2b8cffa

View File

@@ -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");
});
});