mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
fixed linting errors.
This commit is contained in:
@@ -11,7 +11,7 @@ const sdk = require('postman-collection'),
|
|||||||
XML: 'xml' // used for request-body XMLs
|
XML: 'xml' // used for request-body XMLs
|
||||||
},
|
},
|
||||||
URLENCODED = 'application/x-www-form-urlencoded',
|
URLENCODED = 'application/x-www-form-urlencoded',
|
||||||
APP_JSON = 'application/json',
|
APP_JSON = 'application/json',
|
||||||
APP_VND_JSON = 'application/vnd.api+json',
|
APP_VND_JSON = 'application/vnd.api+json',
|
||||||
APP_JS = 'application/javascript',
|
APP_JS = 'application/javascript',
|
||||||
APP_XML = 'application/xml',
|
APP_XML = 'application/xml',
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ describe('CONVERT FUNCTION TESTS ', function() {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
it('should generate collection for a custom content type headers requests.'
|
it('should generate collection for a custom content type headers requests.' +
|
||||||
+ specPath2 , function(done) {
|
specPath2, function(done) {
|
||||||
var openapi = fs.readFileSync(specPath2, 'utf8');
|
var openapi = fs.readFileSync(specPath2, 'utf8');
|
||||||
Converter.convert({ type: 'string', data: openapi }, { schemaFaker: true }, (err, conversionResult) => {
|
Converter.convert({ type: 'string', data: openapi }, { schemaFaker: true }, (err, conversionResult) => {
|
||||||
expect(err).to.be.null;
|
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');
|
expect(conversionResult.output[0].data.item[0].response[0]).to.have.property('body');
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe('for invalid requestNameSource option', function() {
|
describe('for invalid requestNameSource option', function() {
|
||||||
var pathPrefix = VALID_OPENAPI_PATH + '/test1.json',
|
var pathPrefix = VALID_OPENAPI_PATH + '/test1.json',
|
||||||
|
|||||||
Reference in New Issue
Block a user