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
29a32c68
Commit
29a32c68
authored
4 years ago
by
fsdavid
Browse files
Options
Downloads
Patches
Plain Diff
fix region texploring unit tests
parent
ccc1cdb8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ui/parcellationRegion/region.base.spec.ts
+13
-7
13 additions, 7 deletions
src/ui/parcellationRegion/region.base.spec.ts
with
13 additions
and
7 deletions
src/ui/parcellationRegion/region.base.spec.ts
+
13
−
7
View file @
29a32c68
...
...
@@ -27,7 +27,8 @@ const mr0wrong = {
const
mr1lh
=
{
labelIndex
:
1
,
name
:
'
mr1 - left hemisphere
'
,
name
:
'
mr1
'
,
status
:
'
left hemisphere
'
,
fullId
:
{
kg
:
{
kgSchema
:
'
fzj/mock/pr
'
,
...
...
@@ -38,7 +39,8 @@ const mr1lh = {
const
mr1rh
=
{
labelIndex
:
1
,
name
:
'
mr1 - right hemisphere
'
,
name
:
'
mr1
'
,
status
:
'
right hemisphere
'
,
fullId
:
{
kg
:
{
kgSchema
:
'
fzj/mock/pr
'
,
...
...
@@ -49,7 +51,8 @@ const mr1rh = {
const
mr0lh
=
{
labelIndex
:
1
,
name
:
'
mr0 - left hemisphere
'
,
name
:
'
mr0
'
,
status
:
'
left hemisphere
'
,
fullId
:
{
kg
:
{
kgSchema
:
'
fzj/mock/pr
'
,
...
...
@@ -60,7 +63,8 @@ const mr0lh = {
const
mr0rh
=
{
labelIndex
:
1
,
name
:
'
mr0 - right hemisphere
'
,
name
:
'
mr0 hemisphere
'
,
status
:
'
right hemisphere
'
,
fullId
:
{
kg
:
{
kgSchema
:
'
fzj/mock/pr
'
,
...
...
@@ -72,6 +76,7 @@ const mr0rh = {
const
mr1
=
{
labelIndex
:
1
,
name
:
'
mr1
'
,
status
:
'
interpolated
'
,
fullId
:
{
kg
:
{
kgSchema
:
'
fzj/mock/pr
'
,
...
...
@@ -83,6 +88,7 @@ const mr1 = {
const
mr0
=
{
labelIndex
:
1
,
name
:
'
mr0
'
,
status
:
'
interpolated
'
,
fullId
:
{
kg
:
{
kgSchema
:
'
fzj/mock/pr
'
,
...
...
@@ -95,7 +101,7 @@ const mr0 = {
const
mp1h
=
{
name
:
'
mp1h
'
,
regions
:
[
mr1lh
,
mr0lh
,
mr0rh
,
mr1rh
]
regions
:
[
mr1lh
,
mr0lh
,
mr0rh
,
mr1rh
,
mr0
]
}
const
mpWrong
=
{
...
...
@@ -153,7 +159,7 @@ describe('> region.base.ts', () => {
})
it
(
'
> length checks out
'
,
()
=>
{
expect
(
result
.
length
).
toEqual
(
5
)
expect
(
result
.
length
).
toEqual
(
7
)
})
it
(
'
> does not contain itself
'
,
()
=>
{
...
...
@@ -225,7 +231,7 @@ describe('> region.base.ts', () => {
})
it
(
'
> length checks out
'
,
()
=>
{
expect
(
result
.
length
).
toEqual
(
3
)
expect
(
result
.
length
).
toEqual
(
4
)
})
it
(
'
> does not select wrong hemisphere (right hemisphere)
'
,
()
=>
{
...
...
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