import { describe, it, expect } from 'vitest';
import { RecordPageViewOutputViewModel } from './RecordPageViewOutputViewModel';

describe('RecordPageViewOutputViewModel', () => {
  it('maps DTO fields into view model', () => {
    const dto = { pageViewId: 'pv-123' } as any;

    const vm = new RecordPageViewOutputViewModel(dto);

    expect(vm.pageViewId).toBe('pv-123');
  });

  it('formats displayPageViewId with prefix', () => {
    const vm = new RecordPageViewOutputViewModel({ pageViewId: 'pv-999' } as any);

    expect(vm.displayPageViewId).toBe('Page View: pv-999');
  });
});
