mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-19 01:17:18 +02:00
17 lines
432 B
TypeScript
17 lines
432 B
TypeScript
import { createResponseSchema } from './create-response-schema';
|
|
|
|
test('createResponseSchema', () => {
|
|
expect(createResponseSchema('schemaName')).toMatchInlineSnapshot(`
|
|
{
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/schemaName",
|
|
},
|
|
},
|
|
},
|
|
"description": "schemaName",
|
|
}
|
|
`);
|
|
});
|