Files
trouvetonprofile/src/app/shared/features/pdf-viewer/pdf-viewer.component.spec.ts
2025-12-15 16:14:53 +01:00

34 lines
890 B
TypeScript

import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PdfViewerComponent } from './pdf-viewer.component';
import { ProfileViewModel } from '@app/ui/profiles/profile.presenter.model';
describe('PdfViewerComponent', () => {
let component: PdfViewerComponent;
let fixture: ComponentFixture<PdfViewerComponent>;
const mockProfile: ProfileViewModel = {
id: '123',
cv: 'cvfilename.pdf',
} as ProfileViewModel;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [PdfViewerComponent],
}).compileComponents();
fixture = TestBed.createComponent(PdfViewerComponent);
component = fixture.componentInstance;
fixture.componentRef.setInput('profile', mockProfile);
fixture.detectChanges();
await fixture.whenStable();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});