Skip to content

Commit

Permalink
feat(reporter): show custom message when zero tests ran
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Apr 1, 2017
1 parent 8054a29 commit 6ce1d59
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Reporters/list.js
Expand Up @@ -235,6 +235,21 @@ class Min {
const end = new Date() - this.start
this.blankLine()

/**
* Show a small message with Zero tests ran when
* total count of tests is zero
*
* @method if
*
* @param {[type]} this.finalStats.total [description]
*
* @return {[type]} [description]
*/
if (this.finalStats.total === 0) {
this.log(chalk.bgMagenta.white(' 0 TESTS RAN '))
return
}

this.printStack(error)

if (status === 'passed') {
Expand Down

0 comments on commit 6ce1d59

Please sign in to comment.