mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-02 01:17:58 +02:00
* refactor: add OpenAPI schema to constraints controller * refactor: add more schema tests
8 lines
215 B
TypeScript
8 lines
215 B
TypeScript
import { validateSchema } from './validate';
|
|
|
|
test('validateSchema', () => {
|
|
expect(() => validateSchema('unknownSchemaId' as any, {})).toThrow(
|
|
'no schema with key or ref "unknownSchemaId"',
|
|
);
|
|
});
|