Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siibra-explorer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Gui
siibra-explorer
Commits
b00b65de
Commit
b00b65de
authored
4 years ago
by
Xiao Gui
Browse files
Options
Downloads
Patches
Plain Diff
fix: backend test
since JulichBrain v2.4 removes relatedAreas, use TE1 intead of 7A
parent
a6dc36b1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy/datasets/util.spec.js
+10
-2
10 additions, 2 deletions
deploy/datasets/util.spec.js
with
10 additions
and
2 deletions
deploy/datasets/util.spec.js
+
10
−
2
View file @
b00b65de
...
...
@@ -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
([
dataHuman
Area7ASPL
],
idHuman
Area7A
)
expect
(
result
).
to
.
deep
.
equal
([
dataHuman
Area7ASPL
])
const
result
=
await
filterDatasetsByRegion
([
dataHuman
Te1
],
idHuman
Te1Alt
)
expect
(
result
).
to
.
deep
.
equal
([
dataHuman
Te1
])
})
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment