mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
38e428dacf
* fix: remove group user role
25 lines
566 B
TypeScript
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();
|
|
});
|