fix adapters
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
import type { Logger } from '@core/shared/application';
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user