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

fix: backend test

since JulichBrain v2.4 removes relatedAreas, use TE1 intead of 7A
parent a6dc36b1
No related branches found
No related tags found
No related merge requests found
......@@ -292,6 +292,8 @@ describe('datasets/util.js', () => {
describe('filterDatasetsByRegion', () => {
const idHumanTe1 = `minds/core/parcellationregion/v1.0.0/13e21153-2ba8-4212-b172-8894f1012225`
const idHumanTe1Alt = `minds/core/parcellationregion/v1.0.0/f424643e-9baf-4c50-9417-db1ac33dcd3e`
const idHumanArea7ASPL = 'minds/core/parcellationregion/v1.0.0/e26e999f-77ad-4934-9569-8290ed05ebda'
const idHumanArea7A = `minds/core/parcellationregion/v1.0.0/811f4adb-4a7c-45c1-8034-4afa9edf586a`
const idMouseWholeBrain = `minds/core/parcellationregion/v1.0.0/be45bc91-8db5-419f-9471-73a320f44e06`
......@@ -304,6 +306,12 @@ describe('datasets/util.js', () => {
fullId: idHumanArea7ASPL
}]
}
const dataHumanTe1 = {
name: 'dataHumanTe1',
parcellationRegion: [{
fullId: idHumanTe1
}]
}
const dataMouseWholeBrain = {
name: 'dataMouseWholeBrain',
parcellationRegion: [{
......@@ -329,8 +337,8 @@ describe('datasets/util.js', () => {
expect(result).to.deep.equal([])
})
it('if query region is relatedAreas, should also leave in dataset', async () => {
const result = await filterDatasetsByRegion([dataHumanArea7ASPL], idHumanArea7A)
expect(result).to.deep.equal([dataHumanArea7ASPL])
const result = await filterDatasetsByRegion([dataHumanTe1], idHumanTe1Alt)
expect(result).to.deep.equal([dataHumanTe1])
})
})
......
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