src/utilities/index.js
/**
   * Parses a step argument so that it treats a single cell cucumber table as plain text,
   * and then evaluates it as a handlebars template using the cucumber _cukelib namespace object.
   *
   * @param {string|Object} stepArg
   *
   * @returns {string}
   */
Parses a step argument so that it treats a single cell cucumber table as plain text,
and then evaluates it as a handlebars template using the cucumber _cukelib namespace object.

@param {string|Object} stepArg

@returns {string}
Parses a step argument so that it treats a single cell cucumber table as plain text and then evaluates it as a handlebars template using the cucumber _cukelib namespace object . @param { string|Object } stepArg @returns { string }
parseStepArg(stepArg) {
    let toCompile = stepArg;
    if (stepArg.raw) {
      const dataTable = stepArg.raw();
      if (dataTable.length === 1) {
        toCompile = dataTable[0].join('|');
      } else {
        throw new Error("This doesn't look like a single cell table.");
      }
    }
    return _.isString(toCompile) ? handlebars.compile(toCompile.trim())(get()) : stepArg;
  }
parseStepArg ( stepArg ) { let toCompile = stepArg ; if ( stepArg . raw ) { const dataTable = stepArg . raw ( ) ; if ( dataTable . length === 1 ) { toCompile = dataTable [ 0 ] . join ( '|' ) ; } else { throw new Error ( "This doesn't look like a single cell table." ) ; } } return _ . isString ( toCompile ) ? handlebars . compile ( toCompile . trim ( ) ) ( get ( ) ) : stepArg ; }
Parses a step argument so that it treats a single cell cucumber table as plain text,
 and then evaluates it as a handlebars template using the cucumber _cukelib namespace object.
Parses a step argument so that it treats a single cell cucumber table as plain text and then evaluates it as a handlebars template using the cucumber _cukelib namespace object .