jasmine/lib/json_reporter.js

19 lines
423 B
JavaScript
Raw Normal View History

JasmineReporters.JSON = function (elementId) {
var that = JasmineReporters.reporter(elementId);
that.addResults = function (results) {
that.output = Object.toJSON(results);
}
return that;
}
JasmineReporters.IncrementalJSON = function (elementId) {
var that = JasmineReporters.reporter(elementId);
that.addSpecResults = function (results) {
that.output = Object.toJSON(results);
}
return that;
}