mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-17 13:46:47 +02:00
* Refactor: move openapi utils into /util directory * Refactor: move utils test into `util` directory * Refactor: don't expose standard responses tied to status codes * Feat: update empty response description + make it const * Chore: update snapshot with new response descriptions
17 lines
460 B
TypeScript
17 lines
460 B
TypeScript
import { createResponseSchema } from './create-response-schema';
|
|
|
|
test('createResponseSchema', () => {
|
|
expect(createResponseSchema('schemaName')).toMatchInlineSnapshot(`
|
|
Object {
|
|
"content": Object {
|
|
"application/json": Object {
|
|
"schema": Object {
|
|
"$ref": "#/components/schemas/schemaName",
|
|
},
|
|
},
|
|
},
|
|
"description": "schemaName",
|
|
}
|
|
`);
|
|
});
|