UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

39 lines (26 loc) 758 B
/* Siesta 5.6.1 Copyright(c) 2009-2022 Bryntum AB https://bryntum.com/contact https://bryntum.com/products/siesta/license */ Class('Siesta.Result.Diagnostic', { isa : Siesta.Result, has : { isWarning : false }, methods : { toString : function () { return '# ' + this.description }, toJSON : function () { var info = { parentId : this.parent.id, type : this.meta.name, description : this.description } if (this.isWarning) info.isWarning = true return info } } });