Skip to content

Commit

Permalink
update nifti header test with indexing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
olgn committed Sep 17, 2018
1 parent 8d32b6c commit 88b1120
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/headerField.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const assert = require('assert')
const headerFields = require('../validators/headerFields')

describe('headerFields', () => {
it('should throw an error if _magnitude1 or _magnitude2 files do not have exactly dimensions.', () => {
it('should throw an error if _magnitude1 or _magnitude2 files do not have exactly 3 dimensions.', () => {
const headers = [
// each of these headers has one too many dimensions on the 'dim' field.
[
Expand Down Expand Up @@ -69,9 +69,9 @@ describe('headerFields', () => {
relativePath: 'sub-01_magnitude1.nii',
},
{
dim: [4, 1, 1, 1],
pixdim: [4, 1, 1, 1],
xyzt_units: [4, 1, 1, 1],
dim: [3, 1, 1, 1],
pixdim: [3, 1, 1, 1],
xyzt_units: [3, 1, 1, 1],
},
],
[
Expand All @@ -80,9 +80,9 @@ describe('headerFields', () => {
relativePath: 'sub-01_magnitude2.nii',
},
{
dim: [4, 1, 1, 1],
pixdim: [4, 1, 1, 1],
xyzt_units: [4, 1, 1, 1],
dim: [3, 1, 1, 1],
pixdim: [3, 1, 1, 1],
xyzt_units: [3, 1, 1, 1],
},
],
]
Expand Down Expand Up @@ -131,8 +131,8 @@ describe('headerFields', () => {
relativePath: 'sub-01_T1w.nii',
},
{
dim: [4, 1, 1, 1],
pixdim: [4, 1, 1, 1],
dim: [3, 1, 1, 1],
pixdim: [3, 1, 1, 1],
xyzt_units: [4, 1, 1, 1],
},
],
Expand Down

0 comments on commit 88b1120

Please sign in to comment.