mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
16 lines
397 B
TypeScript
16 lines
397 B
TypeScript
|
import { validateSchema } from '../validate';
|
||
|
import { UsersGroupsBaseSchema } from './users-groups-base-schema';
|
||
|
|
||
|
test('usersGroupsBaseSchema', () => {
|
||
|
const data: UsersGroupsBaseSchema = {
|
||
|
users: [
|
||
|
{
|
||
|
id: 1,
|
||
|
},
|
||
|
],
|
||
|
};
|
||
|
expect(
|
||
|
validateSchema('#/components/schemas/usersGroupsBaseSchema', data),
|
||
|
).toBeUndefined();
|
||
|
});
|