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

describe('InMemoryDriverExtendedProfileProvider', () => {
  it('returns an extended profile shape', () => {
    const logger = {
      debug: vi.fn(),
      info: vi.fn(),
      warn: vi.fn(),
      error: vi.fn(),
    } as unknown as Logger;

    const provider = new InMemoryDriverExtendedProfileProvider(logger);

    const profile = provider.getExtendedProfile('driver-1');
    expect(profile).not.toBeNull();
    expect(profile?.socialHandles).toBeInstanceOf(Array);
    expect(profile?.achievements).toBeInstanceOf(Array);
    expect(typeof profile?.favoriteTrack).toBe('string');
  });
});
