added util tests for some methods

This commit is contained in:
pavantejapotnuru
2018-09-26 17:11:17 +05:30
parent b969a83ab6
commit 11b511be07
4 changed files with 585 additions and 107 deletions

View File

@@ -575,7 +575,7 @@ module.exports = {
paramType;
if (!param) {
return '';
return [];
}
// check for existence of schema
if (param.hasOwnProperty('schema')) {
@@ -978,6 +978,9 @@ module.exports = {
// console.log("path params = ", reqParams.path, pathVarArray)
_.forEach(reqParams.query, (queryParam) => {
if (queryParam.$ref) {
queryParam = this.getRefObject(queryParam.$ref);
}
this.convertToPmQueryParameters(queryParam).forEach((pmParam) => {
item.request.url.addQueryParams(pmParam);
});