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 GitHub
parent 45f779a2fd
commit 4716620ab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);