Skip to content

Commit beb0101

Browse files
committed
Fix legacy HED tests (which had several pieces of actually invalid data)
1 parent f40d4de commit beb0101

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

bids-validator/tests/hed.spec.js

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('HED', function () {
2727
]
2828
const jsonDictionary = {
2929
'/sub01/sub01_task-test_events.json': {
30-
myCodes: {
30+
test: {
3131
HED: {
3232
one: 'Duration/5 s',
3333
},
@@ -55,12 +55,8 @@ describe('HED', function () {
5555
]
5656
const jsonDictionary = {
5757
'/sub01/sub01_task-test_events.json': {
58-
myCodes: {
59-
test: {
60-
HED: {
61-
one: 'Label/#',
62-
},
63-
},
58+
test: {
59+
HED: 'Label/#',
6460
},
6561
},
6662
'/dataset_description.json': { HEDVersion: '8.0.0' },
@@ -86,11 +82,9 @@ describe('HED', function () {
8682

8783
const jsonDictionary = {
8884
'/sub01/sub01_task-test_events.json': {
89-
myCodes: {
90-
test: {
91-
HED: {
92-
one: 'ts:Sensory-presentation, Label/#',
93-
},
85+
test: {
86+
HED: {
87+
one: 'ts:Sensory-presentation, Train',
9488
},
9589
},
9690
},
@@ -148,11 +142,9 @@ describe('HED', function () {
148142

149143
const jsonDictionary = {
150144
'/sub01/sub01_task-test_events.json': {
151-
myCodes: {
152-
test: {
153-
HED: {
154-
one: 'ts:Sensory-presentation, Label/#, sc:Sleep-deprivation',
155-
},
145+
test: {
146+
HED: {
147+
one: 'ts:Sensory-presentation, Walk, sc:Sleep-deprivation',
156148
},
157149
},
158150
},
@@ -260,7 +252,7 @@ describe('HED', function () {
260252
]
261253
const jsonDictionary = {
262254
'/sub01/sub01_task-test_events.json': {
263-
myCodes: {
255+
test: {
264256
HED: {
265257
one: 'Duration/5 s',
266258
},

0 commit comments

Comments
 (0)