34 lines
890 B
TypeScript
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();
|
|
});
|
|
});
|