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

fix tests

parent 67496b7e
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ module.exports = [
"parcellationAtlas": [
{
"name": "Jülich Cytoarchitechtonic Brain Atlas (human)",
"fullId": "https://nexus.humanbrainproject.org/v0/data/minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579",
"fullId": "https://nexus.humanbrainproject.org/v0/data/minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-25",
"id": [
"deec923ec31a82f89a9c7c76a6fefd6b",
"e2d45e028b6da0f6d9fdb9491a4de80a"
......
......@@ -61,7 +61,7 @@ module.exports = [
"parcellationAtlas": [
{
"name": "Jülich Cytoarchitechtonic Brain Atlas (human)",
"fullId": "https://nexus.humanbrainproject.org/v0/data/minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579",
"fullId": "https://nexus.humanbrainproject.org/v0/data/minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-25",
"id": [
"deec923ec31a82f89a9c7c76a6fefd6b",
"e2d45e028b6da0f6d9fdb9491a4de80a"
......
......@@ -12,6 +12,7 @@ const KG_IDS = {
LONG_BUNDLE: 'juelich/iav/atlas/v1.0.0/5',
SHORT_BUNDLE: 'juelich/iav/atlas/v1.0.0/6',
JULICH_BRAIN: 'minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579',
JULICH_BRAIN_V25: 'minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-25',
JULICH_BRAIN_V24_BIGBRAIN: 'juelich/iav/atlas/v1.0.0/7'
}
}
......@@ -157,7 +158,7 @@ initPrArray.push(
}
const longBundle = flattenRegions(json.parcellations.find(({ ['@id']: id }) => id === KG_IDS.PARCELLATIONS.LONG_BUNDLE).regions)
const shortBundle = flattenRegions(json.parcellations.find(({ ['@id']: id }) => id === KG_IDS.PARCELLATIONS.SHORT_BUNDLE).regions)
const jubrain = flattenRegions(json.parcellations.find(({ ['@id']: id }) => id === KG_IDS.PARCELLATIONS.JULICH_BRAIN).regions)
const jubrain = flattenRegions(json.parcellations.find(({ ['@id']: id }) => id === KG_IDS.PARCELLATIONS.JULICH_BRAIN_V25).regions)
longBundleSet = populateSet(longBundle)
shortBundleSet = populateSet(shortBundle)
juBrainSet = populateSet(jubrain)
......
......@@ -10,8 +10,8 @@ import { defaultRootState } from '../stateStore.service'
const colinsJson = require('!json-loader!../../res/ext/colin.json')
const COLIN_JULICHBRAIN_LAYER_NAME = `COLIN_V24_LEFT_NG`
const COLIN_V24_ID = 'minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579'
const COLIN_JULICHBRAIN_LAYER_NAME = `COLIN_V25_LEFT_NG_SPLIT_HEMISPHERE`
const COLIN_V25_ID = 'minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-25'
describe('effect.ts', () => {
describe('getGetRegionFromLabelIndexId', () => {
......@@ -19,13 +19,13 @@ describe('effect.ts', () => {
const getRegionFromlabelIndexId = getGetRegionFromLabelIndexId({
parcellation: {
...colinsJson.parcellations.find(p => p['@id'] === COLIN_V24_ID),
...colinsJson.parcellations.find(p => p['@id'] === COLIN_V25_ID),
updated: true,
},
})
const fetchedRegion = getRegionFromlabelIndexId({ labelIndexId: `${COLIN_JULICHBRAIN_LAYER_NAME}#116` })
expect(fetchedRegion).toBeTruthy()
expect(fetchedRegion.fullId.kg.kgId).toEqual('b09aaa77-f41b-4008-b8b9-f984b0417cf3')
expect(fetchedRegion.fullId.kg.kgId).toEqual('c9753e82-80ca-4074-a704-9dd2c4c0d58b')
})
})
......
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