Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
fix (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyione committed Jul 3, 2020
1 parent 412dd12 commit bef4c6b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/common/apiTestRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,16 @@ export class ApiTestRunner {
let parameter: any = operationResults[para.resultType!][para.resultIndex!];
if (para.resultPath) {
for (const item of para.resultPath) {
parameter = parameter[item];
if (parameter) {
parameter = parameter[item];
} else {
return;
}
}
}
if (!parameter) {
return;
}
parameters.push(parameter);
}
}
Expand Down

0 comments on commit bef4c6b

Please sign in to comment.