Skip to content

Commit

Permalink
Fix legacy HED tests (which had several pieces of actually invalid data)
Browse files Browse the repository at this point in the history
  • Loading branch information
happy5214 committed Oct 25, 2024
1 parent d5375c2 commit 87971f6
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions bids-validator/tests/hed.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('HED', function () {
]
const jsonDictionary = {
'/sub01/sub01_task-test_events.json': {
myCodes: {
test: {
HED: {
one: 'Duration/5 s',
},
Expand Down Expand Up @@ -55,12 +55,8 @@ describe('HED', function () {
]
const jsonDictionary = {
'/sub01/sub01_task-test_events.json': {
myCodes: {
test: {
HED: {
one: 'Label/#',
},
},
test: {
HED: 'Label/#',
},
},
'/dataset_description.json': { HEDVersion: '8.0.0' },
Expand All @@ -86,11 +82,9 @@ describe('HED', function () {

const jsonDictionary = {
'/sub01/sub01_task-test_events.json': {
myCodes: {
test: {
HED: {
one: 'ts:Sensory-presentation, Label/#',
},
test: {
HED: {
one: 'ts:Sensory-presentation, Train',
},
},
},
Expand Down Expand Up @@ -148,11 +142,9 @@ describe('HED', function () {

const jsonDictionary = {
'/sub01/sub01_task-test_events.json': {
myCodes: {
test: {
HED: {
one: 'ts:Sensory-presentation, Label/#, sc:Sleep-deprivation',
},
test: {
HED: {
one: 'ts:Sensory-presentation, Walk, sc:Sleep-deprivation',
},
},
},
Expand Down Expand Up @@ -260,7 +252,7 @@ describe('HED', function () {
]
const jsonDictionary = {
'/sub01/sub01_task-test_events.json': {
myCodes: {
test: {
HED: {
one: 'Duration/5 s',
},
Expand Down

0 comments on commit 87971f6

Please sign in to comment.