mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-15 20:15:32 +00:00
fix(accounts): refine codex plan badges
This commit is contained in:
1 parent
72ea1fc9d6
commit
25aa8bdb16
10 files changed
+111
-33
No files matched your search
@@ -20,7 +20,11 @@ vi.mock('@/hooks/use-cliproxy-stats', async () => {
|
||||
const mockedUseAccountQuota = vi.mocked(useAccountQuota);
|
||||
const mockedUseAccountQuotas = vi.mocked(useAccountQuotas);
|
||||
|
||||
function makeCodexQuota(planType: 'free' | 'plus' | 'team', fiveHour: number, weekly: number) {
|
||||
function makeCodexQuota(
|
||||
planType: 'free' | 'plus' | 'pro' | 'team',
|
||||
fiveHour: number,
|
||||
weekly: number
|
||||
) {
|
||||
return {
|
||||
success: true,
|
||||
planType,
|
||||
@@ -201,5 +205,6 @@ describe('AccountCard grouped quota tooltip', () => {
|
||||
expect(screen.getByTitle('Business · Workspace 04a0f049 • Personal · Pro')).toBeInTheDocument();
|
||||
expect(screen.getByText('Personal · Pro')).toBeInTheDocument();
|
||||
expect(screen.queryByText('Free')).not.toBeInTheDocument();
|
||||
expect(screen.getByText('Pro')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user