Skip to content

Commit

Permalink
Restored commented out tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VisLab committed Nov 4, 2024
1 parent 095bc2b commit 08956d8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/dataset.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,31 +38,31 @@ describe('HED dataset validation', () => {
const testDatasets = {
empty: [],
singleValidLong: ['Event/Sensory-event'],
/* singleValidShort: ['Sensory-event'],
singleValidShort: ['Sensory-event'],
multipleValidLong: [
'Event/Sensory-event',
'Item/Object/Man-made-object/Vehicle/Train',
'Property/Sensory-property/Sensory-attribute/Visual-attribute/Color/RGB-color/RGB-red/0.5',
],
multipleValidShort: ['Sensory-event', 'Train', 'RGB-red/0.5'],
multipleValidMixed: ['Event/Sensory-event', 'Train', 'RGB-red/0.5'],
multipleInvalid: ['Time-value/0.5 cm', 'InvalidEvent'],*/
multipleInvalid: ['Time-value/0.5 cm', 'InvalidEvent'],
}
const legalTimeUnits = ['s', 'second', 'day', 'minute', 'hour']
const expectedIssues = {
empty: [],
singleValidLong: [],
/* singleValidShort: [],
multipleValidLong: [],
multipleValidShort: [],
multipleValidMixed: [],
multipleInvalid: [
generateValidationIssue('unitClassInvalidUnit', {
tag: testDatasets.multipleInvalid[0],
unitClassUnits: legalTimeUnits.sort().join(','),
}),
generateValidationIssue('invalidTag', { tag: testDatasets.multipleInvalid[1] }),
],*/
singleValidShort: [],
multipleValidLong: [],
multipleValidShort: [],
multipleValidMixed: [],
multipleInvalid: [
generateValidationIssue('unitClassInvalidUnit', {
tag: testDatasets.multipleInvalid[0],
unitClassUnits: legalTimeUnits.sort().join(','),
}),
generateValidationIssue('invalidTag', { tag: testDatasets.multipleInvalid[1] }),
],
}
return validator(testDatasets, expectedIssues)
})
Expand Down

0 comments on commit 08956d8

Please sign in to comment.