diff options
| author | Abhi <[email protected]> | 2025-06-12 15:31:17 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-12 19:31:17 +0000 |
| commit | 32da693b911d0022d2b0f0d6a918e5830f425d54 (patch) | |
| tree | 4341c1e3fa712903a6924735e468a7cc92ed5f4c /packages/cli/src/ui/components/Stats.test.tsx | |
| parent | 6bb3f27f6cddfeeb4295d12830aa3c03214e6b13 (diff) | |
bug: only show tool tokens if > 0 (#985)
Diffstat (limited to 'packages/cli/src/ui/components/Stats.test.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/Stats.test.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/cli/src/ui/components/Stats.test.tsx b/packages/cli/src/ui/components/Stats.test.tsx index 1436d485..27c7d64e 100644 --- a/packages/cli/src/ui/components/Stats.test.tsx +++ b/packages/cli/src/ui/components/Stats.test.tsx @@ -66,6 +66,17 @@ describe('<StatsColumn />', () => { ); expect(lastFrame()).toMatchSnapshot(); }); + + it('hides the tool use row when there are no tool use tokens', () => { + const statsWithNoToolUse: FormattedStats = { + ...mockStats, + toolUseTokens: 0, + }; + const { lastFrame } = render( + <StatsColumn title="Test Stats" stats={statsWithNoToolUse} />, + ); + expect(lastFrame()).not.toContain('Tool Use Tokens'); + }); }); describe('<DurationColumn />', () => { |
