mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
14 lines
348 B
TypeScript
14 lines
348 B
TypeScript
|
import { validateSchema } from '../validate';
|
||
|
import { UsersSchema } from './users-schema';
|
||
|
|
||
|
test('usersSchema', () => {
|
||
|
const data: UsersSchema = {
|
||
|
users: [{ id: 1 }],
|
||
|
rootRoles: [{ id: 1, type: 'a', name: 'b' }],
|
||
|
};
|
||
|
|
||
|
expect(
|
||
|
validateSchema('#/components/schemas/usersSchema', data),
|
||
|
).toBeUndefined();
|
||
|
});
|