Skip to content
Snippets Groups Projects
Commit 29a32c68 authored by fsdavid's avatar fsdavid
Browse files

fix region texploring unit tests

parent ccc1cdb8
No related branches found
No related tags found
No related merge requests found
......@@ -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)', () => {
......
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