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

bugfix: unit tests

parent e438e02c
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ describe('atlasviewer.history.service.ts', () => {
})
const expected = cold('(a)', {
a: 'templateSelected=Big+Brain+%28Histology%29&parcellationSelected=Cytoarchitectonic+Maps'
a: 'templateSelected=Big+Brain+%28Histology%29&parcellationSelected=Cytoarchitectonic+Maps+-+v2.4'
})
expect(effect.currentStateSearchParam$).toBeObservable(expected)
......
......@@ -28,7 +28,7 @@ const fetchedTemplateRootState = {
}
// TODO finish writing tests
describe('atlasViewer.urlService.service.ts', () => {
describe('atlasViewer.urlUtil.ts', () => {
describe('cvtSearchParamToState', () => {
it('> convert empty search param to empty state', () => {
......@@ -176,9 +176,9 @@ describe('atlasViewer.urlService.service.ts', () => {
})
})
describe('cvtStateToSearchParam', () => {
describe('> cvtStateToSearchParam', () => {
it('should convert template selected', () => {
it('> should convert template selected', () => {
const { viewerState } = defaultRootState
const searchParam = cvtStateToSearchParam({
...defaultRootState,
......@@ -191,7 +191,7 @@ describe('atlasViewer.urlService.service.ts', () => {
const stringified = searchParam.toString()
expect(stringified).toBe('templateSelected=Big+Brain+%28Histology%29')
})
it('should convert template selected and parcellation selected', () => {
it('> should convert template selected and parcellation selected', () => {
const { viewerState } = defaultRootState
const searchParam = cvtStateToSearchParam({
......@@ -204,7 +204,7 @@ describe('atlasViewer.urlService.service.ts', () => {
})
const stringified = searchParam.toString()
expect(stringified).toBe('templateSelected=Big+Brain+%28Histology%29&parcellationSelected=Cytoarchitectonic+Maps')
expect(stringified).toBe('templateSelected=Big+Brain+%28Histology%29&parcellationSelected=Cytoarchitectonic+Maps+-+v2.4')
})
})
})
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