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/groups-schema.test.ts
Simon Hornby 38e428dacf
Fix/remove group owner concept (#1905)
* fix: remove group user role
2022-08-11 08:23:08 +02:00

25 lines
566 B
TypeScript

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();
});