From 8689e55acad7d19ee8981202a168b5f004016441 Mon Sep 17 00:00:00 2001 From: Ross Blair Date: Fri, 30 Aug 2024 09:15:48 -0500 Subject: [PATCH] loadSchema must be called in order to populate ajv with our formats. --- bids-validator/src/validators/citation.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bids-validator/src/validators/citation.test.ts b/bids-validator/src/validators/citation.test.ts index 7ec959e50..16bcfbcba 100644 --- a/bids-validator/src/validators/citation.test.ts +++ b/bids-validator/src/validators/citation.test.ts @@ -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 })