function printTestResults(results) {
  if (!results) {
    return false;
  }
  if (Array.isArray(results) === false) {
    results = [results];
  }
  results.forEach((result) => {
    const filename = result.filename;
    const position = result.position;
    const message = result.message;
    const extra = result.extra;
    if (result.level === 'ERROR') {
      logError(filename, position, message, extra);
    } else {
      logWarning(filename, position, message, extra);
    }
  });
  return true;
}
Temporary function to print results from refactored tests

@param {Array} results The array of results.
@return {Array} results as handed in.