mirror of
https://github.com/brittonhayes/validate-yaml.git
synced 2024-11-30 08:50:57 -05:00
9 lines
301 B
TypeScript
9 lines
301 B
TypeScript
import {validateYAML} from '../src/validate'
|
|
import {expect, test} from '@jest/globals'
|
|
|
|
test('valid yaml files', async () => {
|
|
const files: string[] = ['__tests__/valid.yaml']
|
|
const schemaPath: string = '__tests__/schema.json'
|
|
|
|
await expect(validateYAML(files, schemaPath)).resolves.toBe(0)
|
|
})
|