From 2632820f1e00e85a0b9ab91c188eba7d332912d2 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Wed, 30 Oct 2024 13:49:15 -0400 Subject: [PATCH] Expect non-HED datasets to raise HED warnings --- bids-validator/tests/bids.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bids-validator/tests/bids.spec.js b/bids-validator/tests/bids.spec.js index 22c700206..0cfc43ac8 100644 --- a/bids-validator/tests/bids.spec.js +++ b/bids-validator/tests/bids.spec.js @@ -108,7 +108,7 @@ describe('BIDS example datasets ', function () { expect(summary.modalities).toEqual(['MRI']) assert(summary.totalFiles === 135) assert.deepEqual(errors.length, 1) - assert(warnings.length === 3) + assert(warnings.length === 4) assert( warnings.findIndex((warning) => warning.code === 13) > -1, 'warnings do not contain a code 13', @@ -137,7 +137,7 @@ describe('BIDS example datasets ', function () { errors.findIndex((error) => error.code === 60) > -1, 'errors do not contain a code 60', ) - assert.deepEqual(warnings.length, 4) + assert.deepEqual(warnings.length, 5) assert( warnings.findIndex((warning) => warning.code === 13) > -1, 'warnings do not contain a code 13', @@ -219,7 +219,7 @@ describe('BIDS example datasets ', function () { assert(summary.modalities.includes('MRI')) assert(summary.totalFiles === 135) assert.deepEqual(errors.length, 1) - assert(warnings.length === 3) + assert(warnings.length === 4) assert( warnings.findIndex((warning) => warning.code === 13) > -1, 'warnings do not contain a code 13', @@ -243,7 +243,7 @@ describe('BIDS example datasets ', function () { assert(summary.modalities.includes('MRI')) assert(summary.totalFiles === 135) assert.deepEqual(errors.length, 2) - assert(warnings.length === 3) + assert(warnings.length === 4) assert( warnings.findIndex((warning) => warning.code === 13) > -1, 'warnings do not contain a code 13',