mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
17 lines
387 B
TypeScript
17 lines
387 B
TypeScript
|
import { validateSchema } from '../validate';
|
||
|
import { EmailSchema } from './email-schema';
|
||
|
|
||
|
test('emailSchema', () => {
|
||
|
const data: EmailSchema = {
|
||
|
email: '',
|
||
|
};
|
||
|
|
||
|
expect(
|
||
|
validateSchema('#/components/schemas/emailSchema', data),
|
||
|
).toBeUndefined();
|
||
|
|
||
|
expect(
|
||
|
validateSchema('#/components/schemas/emailSchema', {}),
|
||
|
).toMatchSnapshot();
|
||
|
});
|