Skip to content

Commit 80ff76f

Browse files
committed
rename userProvidedGeolocation
1 parent 3c1daf0 commit 80ff76f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/helpers/capabilityHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ const validate = (bsConfig, args) => {
164164

165165
if( Utils.searchForOption('--async') && ( !Utils.isUndefined(args.async) && bsConfig["connection_settings"]["local"])) reject(Constants.validationMessages.INVALID_LOCAL_ASYNC_ARGS);
166166

167-
if (bsConfig.run_settings.userProvidedGeoLocation && !bsConfig.run_settings.geolocation.match(/^[A-Z]{2}$/g)) reject(Constants.validationMessages.INVALID_GEO_LOCATION);
167+
if (bsConfig.run_settings.userProvidedGeolocation && !bsConfig.run_settings.geolocation.match(/^[A-Z]{2}$/g)) reject(Constants.validationMessages.INVALID_GEO_LOCATION);
168168

169-
if (bsConfig["connection_settings"]["local"] && bsConfig.run_settings.userProvidedGeoLocation) reject(Constants.validationMessages.NOT_ALLOWED_GEO_LOCATION_AND_LOCAL_MODE);
169+
if (bsConfig["connection_settings"]["local"] && bsConfig.run_settings.userProvidedGeolocation) reject(Constants.validationMessages.NOT_ALLOWED_GEO_LOCATION_AND_LOCAL_MODE);
170170

171171
// validate if config file provided exists or not when cypress_config_file provided
172172
// validate the cypressProjectDir key otherwise.

0 commit comments

Comments
 (0)