Skip to content
Snippets Groups Projects
Commit d575225d authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: unittest

parent 8c65e49e
No related branches found
No related tags found
No related merge requests found
......@@ -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(() => {})
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment