Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save craigtaub/d56ec337145d64be0939da001a4d1486 to your computer and use it in GitHub Desktop.
Save craigtaub/d56ec337145d64be0939da001a4d1486 to your computer and use it in GitHub Desktop.
Base.prototype.epilogue = function() {
var stats = this.stats
Base.consoleLog()
// passes
var fmt =
color("bright pass", " ") +
color("green", " %d passing") +
color("light", " (%s)")
Base.consoleLog(fmt, stats.passes || 0, milliseconds(stats.duration))
// failures
if (stats.failures) {
fmt = color("fail", " %d failing")
Base.consoleLog(fmt, stats.failures)
Base.list(this.failures)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment