Skip to content

Commit

Permalink
loadSchema must be called in order to populate ajv with our formats.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwblair committed Aug 30, 2024
1 parent 066ec3b commit 8689e55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bids-validator/src/validators/citation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import { BIDSFileDeno } from '../files/deno.ts'
import { citationValidate } from './citation.ts'
import { BIDSContextDataset } from '../schema/context.ts'
import { GenericSchema } from '../types/schema.ts'
import { loadSchema } from '../setup/loadSchema.ts'

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

0 comments on commit 8689e55

Please sign in to comment.