37 lines
1.1 KiB
TypeScript
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: '🚀',
|
|
});
|
|
});
|
|
});
|
|
});
|