function buildFailureParams (test) {
  const opts = test.error.operator
    ? { type: test.error.operator, message: test.raw }
    : { message: test.raw }

  if (test.error.raw && test.error.stack) {
    return [
      opts,
      `
      ---
  ${test.error.raw}
  ${test.error.stack}
      ---
          `
    ]
  }

  return [opts]
}
/**
 * Gathers information from the test object to build out the proper arguments for creating the failure element
 * @function
 * @private
 * @param {Object} test The primary test results object
 * @returns {Array} An array with the proper arguments to use
 */
Gathers information from the test object to build out the proper arguments for creating the failure element
@function
@private
@param {Object} test The primary test results object
@returns {Array} An array with the proper arguments to use
Gathers information from the test object to build out the proper arguments for creating the failure element @function @private @param { Object } test The primary test results object @returns { Array } An array with the proper arguments to use
function buildFailureParams (test) {
  const opts = test.error.operator
    ? { type: test.error.operator, message: test.raw }
    : { message: test.raw }
  if (test.error.raw && test.error.stack) {
    return [
      opts,
      `
      ---
  ${test.error.raw}
  ${test.error.stack}
      ---
          `
    ]
  }
  return [opts]
}
function buildFailureParams ( test ) { const opts = test . error . operator ? { type : test . error . operator , message : test . raw } : { message : test . raw } if ( test . error . raw && test . error . stack ) { return [ opts , ` ${ test . error . raw } ${ test . error . stack } ` ] } return [ opts ] }
Gathers information from the test object to build out the proper arguments for creating the failure element
 @function
 @private
 @param {Object} test The primary test results object
 @returns {Array} An array with the proper arguments to use
Gathers information from the test object to build out the proper arguments for creating the failure element @function @private @param { Object } test The primary test results object @returns { Array } An array with the proper arguments to use