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