1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/lib/openapi/spec/groups-schema.test.ts

25 lines
566 B
TypeScript
Raw Normal View History

import { validateSchema } from '../validate';
import { GroupsSchema } from './groups-schema';
test('groupsSchema', () => {
const data: GroupsSchema = {
groups: [
{
id: 1,
name: 'Group',
users: [
{
user: {
id: 3,
},
},
],
},
],
};
expect(
validateSchema('#/components/schemas/groupsSchema', data),
).toBeUndefined();
});