mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-21 13:47:39 +02:00
18 lines
456 B
TypeScript
18 lines
456 B
TypeScript
import { createRequestSchema } from './create-request-schema';
|
|
|
|
test('createRequestSchema', () => {
|
|
expect(createRequestSchema('schemaName')).toMatchInlineSnapshot(`
|
|
{
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/schemaName",
|
|
},
|
|
},
|
|
},
|
|
"description": "schemaName",
|
|
"required": true,
|
|
}
|
|
`);
|
|
});
|