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');
  });
});