Nickolay - Test.Run-0.09
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
}
}
})