mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
23 lines
629 B
TypeScript
23 lines
629 B
TypeScript
|
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();
|
||
|
});
|