diff --git a/src/ui/parcellationRegion/region.base.spec.ts b/src/ui/parcellationRegion/region.base.spec.ts index 0b09bc95d1ec46e3345fcc4f2596b00ba1d09ef1..282c3dd923bf39e5842f2dbf7ace0c57b3cda144 100644 --- a/src/ui/parcellationRegion/region.base.spec.ts +++ b/src/ui/parcellationRegion/region.base.spec.ts @@ -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)', () => {