Nickolay - Test.Run-0.10

Documentation | Source
Class('Test.Run.Result.Assertion', {
    
    isa : Test.Run.Result,
    

    have : {
        passed      : null,
        
        annotation  : null,
        
        index       : null,
        
        isSkipped   : false,
        isTodo      : false
    },
    
    
    methods : {
        
        toString : function () {
            var text = (this.passed ? 'ok' : 'not ok') + ' ' + this.index + ' - ' + this.description
            
            if (this.annotation) text += '\n' + this.annotation
            
            return text
        }
        
    }
        
})