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

fix: tests

parent cfa50ea0
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ export class SAPI{ ...@@ -96,7 +96,7 @@ export class SAPI{
static get BsEndpoint$(): Observable<string> { static get BsEndpoint$(): Observable<string> {
if (!!BS_ENDPOINT_CACHED_VALUE) return BS_ENDPOINT_CACHED_VALUE if (!!BS_ENDPOINT_CACHED_VALUE) return BS_ENDPOINT_CACHED_VALUE
const rootEl = document.querySelector('atlas-viewer') const rootEl = document.querySelector('atlas-viewer')
const overwriteSapiUrl = rootEl.getAttribute(CONST.OVERWRITE_SAPI_ENDPOINT_ATTR) const overwriteSapiUrl = rootEl?.getAttribute(CONST.OVERWRITE_SAPI_ENDPOINT_ATTR)
const endpoints = overwriteSapiUrl const endpoints = overwriteSapiUrl
? [ overwriteSapiUrl ] ? [ overwriteSapiUrl ]
......
...@@ -107,6 +107,10 @@ describe('> mesh.service.ts', () => { ...@@ -107,6 +107,10 @@ describe('> mesh.service.ts', () => {
[labelIndex2]: fits2 [labelIndex2]: fits2
} }
}) })
const mockStore = TestBed.inject(MockStore)
mockStore.overrideSelector(atlasSelection.selectors.selectedTemplate, {} as any)
mockStore.overrideSelector(atlasSelection.selectors.selectedParcellation, {} as any)
}) })
describe("> auxMesh defined", () => { describe("> auxMesh defined", () => {
......
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