Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulGautamSingh committed Aug 28, 2024
1 parent 6611c40 commit b872d04
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/validate-schemas.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import { Json } from '../lib/util/schema-utils';
import { capitalize } from '../tools/docs/utils';
import * as Schemas from '../tools/schemas/schema';

const dataFileDir = 'lib/data';
const schemaDir = 'tools/schemas';
const schemasAndJsonFiles: {
schemaName: keyof typeof Schemas;
dataFileName: string;
}[] = [];

describe('validate-schemas', () => {
it('validate json files in lib/data against their schemas', async () => {
const dataFileDir = 'lib/data';
const schemaDir = 'tools/schemas';
const schemasAndJsonFiles: {
schemaName: keyof typeof Schemas;
dataFileName: string;
}[] = [];

const schemaFiles = (await fs.readdir(schemaDir)).filter(
(file) => upath.extname(file) === '.json',
);
Expand Down

0 comments on commit b872d04

Please sign in to comment.