Skip to content

Commit

Permalink
Buffered test { goes after #SKIP/TODO, not before
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 3, 2017
1 parent 7ac36fd commit 966a1d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1399,10 +1399,6 @@ Test.prototype.printResult = function printResult (ok, message, extra) {

this.push(util.format('%s %d%s', ok ? 'ok' : 'not ok', n, message))

if (buffer) {
this.push(' {')
}

var ending = false
if (n === this._plan) {
ending = true
Expand All @@ -1421,6 +1417,10 @@ Test.prototype.printResult = function printResult (ok, message, extra) {
}
}

if (buffer) {
this.push(' {')
}

if (!ok && !extra.todo && !extra.skip) {
this._ok = false
}
Expand Down

0 comments on commit 966a1d2

Please sign in to comment.