test: place pricing status row · openclaw/openclaw@bcc2b8c
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -85,10 +85,13 @@ describe("buildStatusCommandReportData", () => {
|
85 | 85 | }), |
86 | 86 | ); |
87 | 87 | |
88 | | -expect(result.overviewRows).toContainEqual({ |
| 88 | +const modelPricingIndex = result.overviewRows.findIndex((row) => row.Item === "Model pricing"); |
| 89 | +expect(modelPricingIndex).toBeGreaterThanOrEqual(0); |
| 90 | +expect(result.overviewRows[modelPricingIndex]).toStrictEqual({ |
89 | 91 | Item: "Model pricing", |
90 | 92 | Value: |
91 | 93 | "warn(warning · optional pricing refresh degraded · OpenRouter pricing fetch failed: TypeError: fetch failed)", |
92 | 94 | }); |
| 95 | +expect(result.overviewRows[modelPricingIndex + 1]?.Item).toBe("Memory"); |
93 | 96 | }); |
94 | 97 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。