mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 01:07:46 +00: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