Files
gridpilot.gg/apps/website/lib/formatters/LeagueTierFormatter.test.ts
Marc Mintel 3db2209d2a
Some checks failed
CI / lint-typecheck (push) Failing after 4m52s
CI / tests (push) Has been skipped
CI / contract-tests (push) Has been skipped
CI / e2e-tests (push) Has been skipped
CI / comment-pr (push) Has been skipped
CI / commit-types (push) Has been skipped
formatter tests
2026-01-25 11:17:47 +01:00

37 lines
1.1 KiB
TypeScript

import { describe, it, expect } from 'vitest';
import { LeagueTierFormatter } from './LeagueTierFormatter';
describe('LeagueTierFormatter', () => {
describe('getDisplay', () => {
it('should return correct display data for premium tier', () => {
const result = LeagueTierFormatter.getDisplay('premium');
expect(result).toEqual({
color: 'text-yellow-400',
bgColor: 'bg-yellow-500/10',
border: 'border-yellow-500/30',
icon: '⭐',
});
});
it('should return correct display data for standard tier', () => {
const result = LeagueTierFormatter.getDisplay('standard');
expect(result).toEqual({
color: 'text-primary-blue',
bgColor: 'bg-primary-blue/10',
border: 'border-primary-blue/30',
icon: '🏆',
});
});
it('should return correct display data for starter tier', () => {
const result = LeagueTierFormatter.getDisplay('starter');
expect(result).toEqual({
color: 'text-gray-400',
bgColor: 'bg-gray-500/10',
border: 'border-gray-500/30',
icon: '🚀',
});
});
});
});