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

23 lines
629 B
TypeScript
Raw Normal View History

import { ProjectOverviewSchema } from './project-overview-schema';
import { validateSchema } from '../validate';
test('updateProjectEnterpriseSettings schema', () => {
const data: ProjectOverviewSchema = {
name: 'project',
version: 3,
featureNaming: {
description: 'naming description',
example: 'a',
pattern: '[aZ]',
},
};
expect(
validateSchema('#/components/schemas/projectOverviewSchema', data),
).toBeUndefined();
expect(
validateSchema('#/components/schemas/projectOverviewSchema', {}),
).toMatchSnapshot();
});