diff --git a/src/viewerModule/nehuba/nehubaViewer/nehubaViewer.component.spec.ts b/src/viewerModule/nehuba/nehubaViewer/nehubaViewer.component.spec.ts index 7faa79281c19f9f82c5d0a0910ec9b856aede274..f6b977efc20ceeccf1f729079e5308367a948bf5 100644 --- a/src/viewerModule/nehuba/nehubaViewer/nehubaViewer.component.spec.ts +++ b/src/viewerModule/nehuba/nehubaViewer/nehubaViewer.component.spec.ts @@ -309,6 +309,12 @@ describe('> nehubaViewer.component.ts', () => { const setup = () => { const fixture = TestBed.createComponent(NehubaViewerUnit) + /** + * set nehubaViewer, since some methods check viewer is loaded + */ + fixture.componentInstance.nehubaViewer = { + ngviewer: {} + } fixture.detectChanges() prvSetCMSpy = spyOn<any>(fixture.componentInstance, 'setColorMap').and.callFake(() => {}) }