mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
23 lines
524 B
TypeScript
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();
|
|
});
|