Skip to content

Commit 3569b4a

Browse files
committed
refactor: remove inappropriate test code from statusline command
Remove test logic from statusline.ts as it should not contain tests - Tests belong in data-loader.ts or separate test files - Commands should focus on execution logic only - Maintains clean separation of concerns
1 parent db0f566 commit 3569b4a

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

‎src/commands/statusline.ts‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -201,28 +201,3 @@ export const statuslineCommand = define({
201201
log(statusLine);
202202
},
203203
});
204-
205-
if (import.meta.vitest != null) {
206-
const { describe, expect, it } = import.meta.vitest;
207-
208-
describe('statusline model context limits', () => {
209-
it('should show same context percentages for all Claude 4 models with current limits', () => {
210-
// Test data with 3,000 tokens input
211-
const tokenCount = 3_000;
212-
213-
// All Claude 4 models currently use 200K limit in Claude Code
214-
// 3000/200000 = 1.5% -> rounds to 2%
215-
const expectedPercentage = Math.round((tokenCount / 200_000) * 100);
216-
expect(expectedPercentage).toBe(2);
217-
218-
// Verify this applies to all model variants
219-
const opusPercentage = Math.round((tokenCount / 200_000) * 100);
220-
const sonnet4Percentage = Math.round((tokenCount / 200_000) * 100);
221-
const sonnet41Percentage = Math.round((tokenCount / 200_000) * 100);
222-
223-
expect(opusPercentage).toBe(2);
224-
expect(sonnet4Percentage).toBe(2);
225-
expect(sonnet41Percentage).toBe(2);
226-
});
227-
});
228-
}

0 commit comments

Comments
 (0)