deadunit.browser.js
function updateCountSuccess(that) {
    if(that.expected !== undefined) {
        var countSuccess = that.count === that.expected
        that.countBlock.state.set("success", countSuccess)
        if(that.groupEnded) that.countBlock.results.state.set("late", true)

        if(countSuccess) {
            that.mainGroup.title.testTotalPasses++
            that.title.passed++
            if(that.groupEnded) {
                that.mainGroup.title.testTotalFailures--
                that.groupEndCountSubtracted = true // marks that failures were subtracted after the test finished (so successes can be later subtracted correctly if need be)
            }
        } else if(that.groupEndCountSubtracted || that.count - 1 === that.expected) {
            that.title.passed--
            that.mainGroup.title.testTotalPasses--
            if(that.groupEnded) {
                that.mainGroup.title.testTotalFailures++
            }
        }
    }
}
function updateCountSuccess(that) {
    if(that.expected !== undefined) {
        var countSuccess = that.count === that.expected
        that.countBlock.state.set("success", countSuccess)
        if(that.groupEnded) that.countBlock.results.state.set("late", true)

        if(countSuccess) {
            that.mainGroup.title.testTotalPasses++
            that.title.passed++
            if(that.groupEnded) {
                that.mainGroup.title.testTotalFailures--
                that.groupEndCountSubtracted = true // marks that failures were subtracted after the test finished (so successes can be later subtracted correctly if need be)
            }
        } else if(that.groupEndCountSubtracted || that.count - 1 === that.expected) {
            that.title.passed--
            that.mainGroup.title.testTotalPasses--
            if(that.groupEnded) {
                that.mainGroup.title.testTotalFailures++
            }
        }
    }
}
function updateCountSuccess ( that ) { if ( that . expected !== undefined ) { var countSuccess = that . count === that . expected that . countBlock . state . set ( "success" , countSuccess ) if ( that . groupEnded ) that . countBlock . results . state . set ( "late" , true ) if ( countSuccess ) { that . mainGroup . title . testTotalPasses ++ that . title . passed ++ if ( that . groupEnded ) { that . mainGroup . title . testTotalFailures -- that . groupEndCountSubtracted = true // marks that failures were subtracted after the test finished (so successes can be later subtracted correctly if need be) } } else if ( that . groupEndCountSubtracted || that . count - 1 === that . expected ) { that . title . passed -- that . mainGroup . title . testTotalPasses -- if ( that . groupEnded ) { that . mainGroup . title . testTotalFailures ++ } } } }
figure out if count succeeded and update the main group and the countblock state
figure out if count succeeded and update the main group and the countblock state