From 88b1120ad378f515948a8808bd9ad2b411795bde Mon Sep 17 00:00:00 2001 From: Teal Hobson-Lowther Date: Mon, 17 Sep 2018 11:20:49 -0700 Subject: [PATCH] update nifti header test with indexing fix --- tests/headerField.spec.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/headerField.spec.js b/tests/headerField.spec.js index cabf22b1d..c9afeec4d 100644 --- a/tests/headerField.spec.js +++ b/tests/headerField.spec.js @@ -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. [ @@ -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], }, ], [ @@ -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], }, ], ] @@ -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], }, ],