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