Files
jasmine/lib/json_reporter.js
2008-12-04 10:56:58 -08:00

17 lines
289 B
JavaScript

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();