cli/e2e.js
function getChromeDriverVersion() {
  return new Promise(resolve => {
    const defaultVersion = 'latest';

    matcher.getChromeDriverVersion()
      .then(result => {
        if (result.chromeDriverVersion) {
          resolve(result.chromeDriverVersion);
        } else {
          resolve(defaultVersion);
        }
      })
      .catch(() => resolve(defaultVersion));
  });
}
function getChromeDriverVersion() {
  return new Promise(resolve => {
    const defaultVersion = 'latest';

    matcher.getChromeDriverVersion()
      .then(result => {
        if (result.chromeDriverVersion) {
          resolve(result.chromeDriverVersion);
        } else {
          resolve(defaultVersion);
        }
      })
      .catch(() => resolve(defaultVersion));
  });
}
function getChromeDriverVersion ( ) { return new Promise ( resolve => { const defaultVersion = 'latest' ; matcher . getChromeDriverVersion ( ) . then ( result => { if ( result . chromeDriverVersion ) { resolve ( result . chromeDriverVersion ) ; } else { resolve ( defaultVersion ) ; } } ) . catch ( ( ) => resolve ( defaultVersion ) ) ; } ) ; }
Calls the getChromeDriverVersion method in our library, but handles any errors.
Calls the getChromeDriverVersion method in our library but handles any errors .