mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
5806b6748f
* 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>
26 lines
605 B
TypeScript
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();
|
|
});
|