Update src/services/__tests__/models/Response.test.ts

Co-authored-by: Giles Wells <giles@mediagearhead.com>
This commit is contained in:
Roman Hotsiy 2020-10-13 17:10:21 +03:00 committed by romanhotsiy
parent 64ff8852b1
commit b079c81d4e
No known key found for this signature in database
GPG Key ID: 0BC2221278CCBBB8

View File

@ -40,7 +40,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);