mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
1ed8dd0f0d
* 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"',
|
|
);
|
|
});
|