import type { Logger } from '@core/shared/domain/Logger';
import { describe, expect, it, vi } from 'vitest';
import { InMemoryImageServiceAdapter } from './InMemoryImageServiceAdapter';

describe('InMemoryImageServiceAdapter', () => {
  it('returns mock urls', () => {
    const logger = {
      debug: vi.fn(),
      info: vi.fn(),
      warn: vi.fn(),
      error: vi.fn(),
    } as unknown as Logger;

    const adapter = new InMemoryImageServiceAdapter(logger);

    expect(adapter.getDriverAvatar('driver-1')).toBe('/media/avatar/driver-1');
    expect(adapter.getTeamLogo('team-1')).toBe('/media/teams/team-1/logo');
    expect(adapter.getLeagueCover('league-1')).toBe('/media/leagues/league-1/cover');
    expect(adapter.getLeagueLogo('league-1')).toBe('/media/leagues/league-1/logo');
  });
});
