lib/commands/find.js
function (strategy, selector, mult, context) {
    let ext = mult ? 's' : '';
    let command = '';
    context = !context ? context : `, '${context}'` ;
    switch (strategy) {
      case 'name':
        command = `au.getElement${ext}ByName('${selector}'${context})`;
        break;
      case 'accessibility id':
        command = `au.getElement${ext}ByAccessibilityId('${selector}'${context})`;
        break;
      case 'id':
        command = `au.getElement${ext}ById('${selector}')`;
        break;
      case '-ios uiautomation':
        command = `au.getElement${ext}ByUIAutomation('${selector}'${context})`;
        break;
      default:
        command = `au.getElement${ext}ByType('${selector}'${context})`;
    }

    return command;
  }
function (strategy, selector, mult, context) {
    let ext = mult ? 's' : '';
    let command = '';
    context = !context ? context : `, '${context}'` ;
    switch (strategy) {
      case 'name':
        command = `au.getElement${ext}ByName('${selector}'${context})`;
        break;
      case 'accessibility id':
        command = `au.getElement${ext}ByAccessibilityId('${selector}'${context})`;
        break;
      case 'id':
        command = `au.getElement${ext}ById('${selector}')`;
        break;
      case '-ios uiautomation':
        command = `au.getElement${ext}ByUIAutomation('${selector}'${context})`;
        break;
      default:
        command = `au.getElement${ext}ByType('${selector}'${context})`;
    }

    return command;
  }
function ( strategy , selector , mult , context ) { let ext = mult ? 's' : '' ; let command = '' ; context = ! context ? context : ` ${ context } ` ; switch ( strategy ) { case 'name' : command = ` ${ ext } ${ selector } ${ context } ` ; break ; case 'accessibility id' : command = ` ${ ext } ${ selector } ${ context } ` ; break ; case 'id' : command = ` ${ ext } ${ selector } ` ; break ; case '-ios uiautomation' : command = ` ${ ext } ${ selector } ${ context } ` ; break ; default : command = ` ${ ext } ${ selector } ${ context } ` ; } return command ; }
eslint-disable-line curly
eslint - disable - line curly