1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/openapi/spec/export-result-schema.test.ts
2023-01-11 15:00:20 +00:00

23 lines
524 B
TypeScript

import { validateSchema } from '../validate';
import { ExportResultSchema } from './export-result-schema';
test('exportResultSchema', () => {
const data: ExportResultSchema = {
features: [
{
name: 'test',
},
],
featureStrategies: [
{
name: 'test',
constraints: [],
},
],
};
expect(
validateSchema('#/components/schemas/exportResultSchema', data),
).toBeUndefined();
});