1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/src/lib/openapi/validate.test.ts

8 lines
215 B
TypeScript
Raw Normal View History

import { validateSchema } from './validate';
test('validateSchema', () => {
expect(() => validateSchema('unknownSchemaId' as any, {})).toThrow(
'no schema with key or ref "unknownSchemaId"',
);
});