fixed linting errors.

This commit is contained in:
Dhroov Gupta
2019-07-12 14:21:08 +05:30
parent f1801f8704
commit 5ccfd5a6c4
2 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ const sdk = require('postman-collection'),
XML: 'xml' // used for request-body XMLs
},
URLENCODED = 'application/x-www-form-urlencoded',
APP_JSON = 'application/json',
APP_JSON = 'application/json',
APP_VND_JSON = 'application/vnd.api+json',
APP_JS = 'application/javascript',
APP_XML = 'application/xml',

View File

@@ -41,8 +41,8 @@ describe('CONVERT FUNCTION TESTS ', function() {
done();
});
});
it('should generate collection for a custom content type headers requests.'
+ specPath2 , function(done) {
it('should generate collection for a custom content type headers requests.' +
specPath2, function(done) {
var openapi = fs.readFileSync(specPath2, 'utf8');
Converter.convert({ type: 'string', data: openapi }, { schemaFaker: true }, (err, conversionResult) => {
expect(err).to.be.null;
@@ -55,7 +55,7 @@ describe('CONVERT FUNCTION TESTS ', function() {
expect(conversionResult.output[0].data.item[0].response[0]).to.have.property('body');
done();
});
});
});
});
describe('for invalid requestNameSource option', function() {
var pathPrefix = VALID_OPENAPI_PATH + '/test1.json',