1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-19 01:17:18 +02:00
unleash.unleash/src/lib/openapi/util/create-response-schema.test.ts
2022-09-06 13:22:41 +02:00

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",
}
`);
});