21 lines
822 B
TypeScript
21 lines
822 B
TypeScript
import { describe, it, expect, vi } from 'vitest';
|
|
import { MediaService } from './MediaService';
|
|
import { Result } from '@/lib/contracts/Result';
|
|
|
|
// Simple test that verifies the service structure
|
|
describe('MediaService', () => {
|
|
it('should be defined', () => {
|
|
expect(MediaService).toBeDefined();
|
|
});
|
|
|
|
it('should have all required methods', () => {
|
|
const service = new MediaService();
|
|
expect(typeof service.getAvatar).toBe('function');
|
|
expect(typeof service.getCategoryIcon).toBe('function');
|
|
expect(typeof service.getLeagueCover).toBe('function');
|
|
expect(typeof service.getLeagueLogo).toBe('function');
|
|
expect(typeof service.getSponsorLogo).toBe('function');
|
|
expect(typeof service.getTeamLogo).toBe('function');
|
|
expect(typeof service.getTrackImage).toBe('function');
|
|
});
|
|
}); |