Skip to content

Commit 0c1b20a

Browse files
rwblaireffigies
authored andcommitted
loadSchema must be called in order to populate ajv with our formats.
1 parent 0ed465b commit 0c1b20a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bids-validator/src/validators/citation.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import { BIDSFileDeno } from '../files/deno.ts'
44
import { citationValidate } from './citation.ts'
55
import { BIDSContextDataset } from '../schema/context.ts'
66
import { GenericSchema } from '../types/schema.ts'
7+
import { loadSchema } from '../setup/loadSchema.ts'
78

89
Deno.test('citation validation', async (t) => {
10+
const schema = await loadSchema()
911
await t.step('no errors on the good citation.cff', async () => {
1012
const tree = pathsToTree(['CITATION.cff'])
1113
const dsContext = new BIDSContextDataset({ tree })

0 commit comments

Comments
 (0)