mirror of
https://github.com/Redocly/redoc.git
synced 2024-12-05 06:43:43 +03:00
Update src/services/__tests__/models/Response.test.ts
Co-authored-by: Giles Wells <giles@mediagearhead.com>
This commit is contained in:
parent
45f779a2fd
commit
4716620ab4
|
@ -32,7 +32,7 @@ describe('Models', () => {
|
|||
expect(resp.type).toEqual('error');
|
||||
});
|
||||
|
||||
test('should be error if showExtensions is true', () => {
|
||||
test('ensure extensions are shown if showExtensions is true', () => {
|
||||
const options = new RedocNormalizedOptions({ showExtensions: true });
|
||||
const resp = new ResponseModel(parser, 'default', true, { 'x-example': {a: 1} } as any, options);
|
||||
expect(Object.keys(resp.extensions).length).toEqual(1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user