Skip to content

Commit

Permalink
feat: mocha reporter included by default
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-redFox committed May 7, 2024
1 parent 47f8d9f commit 7e42fb7
Show file tree
Hide file tree
Showing 12 changed files with 1,438 additions and 982 deletions.
6 changes: 2 additions & 4 deletions lib/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,8 @@ exports.arrayRemove = (collection, item) => {
return false
}

exports.merge = function () {
const args = Array.prototype.slice.call(arguments, 0)
args.unshift({})
return _.merge.apply({}, args)
exports.merge = function (...args) {
return _.merge({}, ...args)
}

exports.formatTimeInterval = (time) => {
Expand Down
4 changes: 2 additions & 2 deletions lib/reporters/base_color.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { red, yellow, green, cyan } = require('@colors/colors/safe')
const { red, yellow, green, cyan } = require('ansis')

function BaseColorReporter () {
function BaseColorReporter() {
this.USE_COLORS = true

this.LOG_SINGLE_BROWSER = '%s: ' + cyan('%s') + '\n'
Expand Down
Loading

0 comments on commit 7e42fb7

Please sign in to comment.