mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 11:34:44 -07:00
bug: only show tool tokens if > 0 (#985)
This commit is contained in:
@@ -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 />', () => {
|
||||
|
||||
Reference in New Issue
Block a user