Skip to content

Commit 6488b6c

Browse files
committed
test(usage): include Pi in provider chart fixtures
1 parent 389fb49 commit 6488b6c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎apps/web/src/components/usage/UsageProviderChart.test.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ describe("buildPeriodColumns", () => {
6969
"2026-08-01",
7070
{
7171
day: "2026-08-01",
72-
costUsd: 30,
73-
totalTokens: 300,
72+
costUsd: 35,
73+
totalTokens: 350,
7474
byProvider: new Map([
7575
["codex" as const, { costUsd: 10, totalTokens: 100 }],
7676
["claude" as const, { costUsd: 20, totalTokens: 200 }],
77+
["pi" as const, { costUsd: 5, totalTokens: 50 }],
7778
]),
7879
},
7980
],
@@ -91,13 +92,13 @@ describe("buildPeriodColumns", () => {
9192

9293
it("plots each day on its own", () => {
9394
expect(buildPeriodColumns(days, byDay, "cost").map((column) => column.total)).toEqual([
94-
30, 0, 5,
95+
35, 0, 5,
9596
]);
9697
});
9798

9899
it("reads the requested metric", () => {
99100
expect(buildPeriodColumns(days, byDay, "tokens").map((column) => column.total)).toEqual([
100-
300, 0, 50,
101+
350, 0, 50,
101102
]);
102103
});
103104

@@ -113,6 +114,7 @@ describe("buildPeriodColumns", () => {
113114
{ provider: "cursor", value: 0 },
114115
{ provider: "opencode", value: 0 },
115116
{ provider: "antigravity", value: 0 },
117+
{ provider: "pi", value: 5 },
116118
]);
117119
});
118120

0 commit comments

Comments
 (0)