validate-yaml/__tests__/main.test.ts

10 lines
301 B
TypeScript
Raw Normal View History

import {validateYAML} from '../src/validate'
2021-10-01 00:58:11 -04:00
import {expect, test} from '@jest/globals'
test('valid yaml files', async () => {
const files: string[] = ['__tests__/valid.yaml']
const schemaPath: string = '__tests__/schema.json'
2021-10-01 00:58:11 -04:00
await expect(validateYAML(files, schemaPath)).resolves.toBe(0)
2021-10-01 00:58:11 -04:00
})