HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/node_modules/karma/lib/reporters/base_color.js
const { red, yellow, green, cyan } = require('@colors/colors/safe')

function BaseColorReporter () {
  this.USE_COLORS = true

  this.LOG_SINGLE_BROWSER = '%s: ' + cyan('%s') + '\n'
  this.LOG_MULTI_BROWSER = '%s %s: ' + cyan('%s') + '\n'

  this.SPEC_FAILURE = red('%s %s FAILED') + '\n'
  this.SPEC_SLOW = yellow('%s SLOW %s: %s') + '\n'
  this.ERROR = red('%s ERROR') + '\n'

  this.FINISHED_ERROR = red(' ERROR')
  this.FINISHED_SUCCESS = green(' SUCCESS')
  this.FINISHED_DISCONNECTED = red(' DISCONNECTED')

  this.X_FAILED = red(' (%d FAILED)')

  this.TOTAL_SUCCESS = green('TOTAL: %d SUCCESS') + '\n'
  this.TOTAL_FAILED = red('TOTAL: %d FAILED, %d SUCCESS') + '\n'
}

// PUBLISH
module.exports = BaseColorReporter