Skip to content

Commit 0d701bc

Browse files
committed
Fix HED test assertions
Since the "internal error" for the null pointer is no longer thrown, there is now only one issue for an invalid schema spec on this test.
1 parent 09c0cbd commit 0d701bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/local/hed-integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Deno.test('hed-validator fails with bad schema version', async (t) => {
4444
const context = new BIDSContext(eventFile, dsContext)
4545
await context.asyncLoads()
4646
await hedValidate(schema as unknown as GenericSchema, context)
47-
assertEquals(context.dataset.issues.size, 2)
48-
assertEquals(context.dataset.issues.get({ code: 'HED_ERROR' }).length, 2)
47+
assertEquals(context.dataset.issues.size, 1)
48+
assertEquals(context.dataset.issues.get({ code: 'HED_ERROR' }).length, 1)
4949
})
5050
})

0 commit comments

Comments
 (0)