fix(接口测试): 禁用场景不校验

This commit is contained in:
chenjianxing 2020-08-26 17:57:34 +08:00
parent 8eeb51258f
commit 8dc66e9268
1 changed files with 6 additions and 4 deletions

View File

@ -227,12 +227,14 @@ export class Scenario extends BaseConfig {
}
isValid() {
if (this.enable) {
for (let i = 0; i < this.requests.length; i++) {
let validator = this.requests[i].isValid(this.environmentId);
if (!validator.isValid) {
return validator;
}
}
}
return {isValid: true};
}
}