1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/openapi/spec/groups-schema.test.ts
sighphyre 5806b6748f
Feat/grouping (#1845)
* Implement user grouping feature for permissions

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
Co-authored-by: Jaanus Sellin <sellinjaanus@gmail.com>
Co-authored-by: Nuno Góis <github@nunogois.com>
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2022-07-21 16:23:56 +02:00

26 lines
605 B
TypeScript

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