ÿØÿà JFIF ` ` ÿþ
|
Server : Apache System : Linux cloud.heroica.com.br 4.18.0-553.36.1.el8_10.x86_64 #1 SMP Wed Jan 22 03:07:54 EST 2025 x86_64 User : farolpborg ( 1053) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /var/www/node_services/apimetaexamepopular/node_modules/karma/lib/reporters/ |
Upload File : |
const BaseReporter = require('./base')
function DotsReporter (formatError, reportSlow, useColors, browserConsoleLogOptions) {
BaseReporter.call(this, formatError, reportSlow, useColors, browserConsoleLogOptions)
const DOTS_WRAP = 80
this.EXCLUSIVELY_USE_COLORS = false
this.onRunStart = function () {
this._browsers = []
this._dotsCount = 0
}
this.onBrowserStart = function (browser) {
this._browsers.push(browser)
}
this.writeCommonMsg = function (msg) {
if (this._dotsCount) {
this._dotsCount = 0
msg = '\n' + msg
}
this.write(msg)
}
this.specSuccess = function () {
this._dotsCount = (this._dotsCount + 1) % DOTS_WRAP
this.write(this._dotsCount ? '.' : '.\n')
}
this.onBrowserComplete = function (browser) {
this.writeCommonMsg(this.renderBrowser(browser) + '\n')
}
this.onRunComplete = function (browsers, results) {
if (browsers.length > 1 && !results.disconnected && !results.error) {
if (!results.failed) {
this.write(this.TOTAL_SUCCESS, results.success)
} else {
this.write(this.TOTAL_FAILED, results.failed, results.success)
}
}
}
}
// PUBLISH
module.exports = DotsReporter