17 lines
289 B
JavaScript
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();
|
||
|
|