jasmine/lib/json_reporter.js

17 lines
289 B
JavaScript
Raw Normal View History

2008-12-04 18:56:58 +00:00
JasmineReporters.JSON = function () {
var that = {
results: {},
addResults: function (results) {
that.results = results;
},
report: function () {
return Object.toJSON(that.results);
}
}
return that;
}
Jasmine.reporter = JasmineReporters.JSON();