Skip to content

Commit a99d362

Browse files
Japneet Singh ChawlaJapneet Singh Chawla
authored andcommitted
cypress_version error
1 parent 649d3e6 commit a99d362

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

commands/utils/validate.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,15 @@ module.exports = validate_config = function (lt_config) {
107107
}
108108
}
109109
if (
110-
lt_config.run_settings.cypress_version &&
110+
lt_config.run_settings.hasOwnProperty("cypress_version") &&
111111
lt_config.run_settings.cypress_version != ""
112112
) {
113113
cypress_flag = true;
114114
} else if (
115-
lt_config.run_settings.cypress_version &&
115+
lt_config.run_settings.hasOwnProperty("cypress_version") &&
116116
lt_config.run_settings.cypress_version == ""
117117
) {
118+
cypress_flag = false;
118119
reject(
119120
"Error!! cypress_version can not be blank, either provide a value or remove the key"
120121
);

0 commit comments

Comments
 (0)