test: codify usage chart sizing · openclaw/openclaw@31bdbfe
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -121,10 +121,9 @@ describe("computeFilteredUsage", () => {
|
121 | 121 | }); |
122 | 122 | |
123 | 123 | describe("chart bar sizing", () => { |
124 | | -it("bar width ratio and max are reasonable", () => { |
125 | | -expect(CHART_BAR_WIDTH_RATIO).toBeGreaterThan(0); |
126 | | -expect(CHART_BAR_WIDTH_RATIO).toBeLessThan(1); |
127 | | -expect(CHART_MAX_BAR_WIDTH).toBeGreaterThan(0); |
| 124 | +it("keeps the chart bar sizing constants stable", () => { |
| 125 | +expect(CHART_BAR_WIDTH_RATIO).toBe(0.75); |
| 126 | +expect(CHART_MAX_BAR_WIDTH).toBe(8); |
128 | 127 | }); |
129 | 128 | |
130 | 129 | it("bars fit within chart width for typical point counts", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。