Sha256: 012348017a479e662e8f6046f6286f0f188cd3b629b60c4a0cc08e0c10bbbe31
Contents?: true
Size: 817 Bytes
Versions: 13
Compression:
Stored size: 817 Bytes
Contents
window.Konacha = { dots:"", mochaOptions: { ui: 'bdd', reporter: function (runner) { window.mocha.reporters.Base.call(this, runner); runner.on('start', function () { Konacha.results = []; }); runner.on('pass', function (test) { Konacha.dots += "."; Konacha.results.push({ name:test.title, passed:true }); }); runner.on('fail', function (test) { Konacha.dots += "F"; Konacha.results.push({ name:test.title, passed:false, message:test.err.message, trace:test.err.stack }); }); runner.on('end', function () { Konacha.done = true; }); } }, getResults:function () { return JSON.stringify(Konacha.results); } };
Version data entries
13 entries across 13 versions & 1 rubygems