( inputTokens: number, outputTokens: number, inputCostUsd: number, outputCostUsd: number )
| 25 | } |
| 26 | |
| 27 | function createUsageWithCosts( |
| 28 | inputTokens: number, |
| 29 | outputTokens: number, |
| 30 | inputCostUsd: number, |
| 31 | outputCostUsd: number |
| 32 | ): ChatUsageDisplay { |
| 33 | return { |
| 34 | input: { tokens: inputTokens, cost_usd: inputCostUsd }, |
| 35 | output: { tokens: outputTokens, cost_usd: outputCostUsd }, |
| 36 | cached: { tokens: 0 }, |
| 37 | cacheCreate: { tokens: 0 }, |
| 38 | reasoning: { tokens: 0 }, |
| 39 | }; |
| 40 | } |
| 41 | describe("SessionUsageService", () => { |
| 42 | let service: SessionUsageService; |
| 43 | let config: Config; |
no outgoing calls
no test coverage detected