Files
gridpilot.gg/apps/website/lib/services/media/MediaService.test.ts
2026-01-17 15:46:55 +01:00

24 lines
882 B
TypeScript

import { describe, it, expect, vi, beforeEach } from 'vitest';
import { MediaService } from './MediaService';
// Simple test that verifies the service structure
describe('MediaService', () => {
beforeEach(() => {
vi.stubEnv('NEXT_PUBLIC_API_BASE_URL', 'http://localhost:3001');
});
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');
});
});