mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 19:04:45 +00:00
test: place pricing status row
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user