Sha256: fcf654b91e9fa807407397bfa5abda99c2c3254d284d868404a73c157c7ab0f6
Contents?: true
Size: 1.33 KB
Versions: 40
Compression:
Stored size: 1.33 KB
Contents
getJasmineRequireObj().JsApiReporter = function() { var noopTimer = { start: function(){}, elapsed: function(){ return 0; } }; function JsApiReporter(options) { var timer = options.timer || noopTimer, status = 'loaded'; this.started = false; this.finished = false; this.jasmineStarted = function() { this.started = true; status = 'started'; timer.start(); }; var executionTime; this.jasmineDone = function() { this.finished = true; executionTime = timer.elapsed(); status = 'done'; }; this.status = function() { return status; }; var suites = {}; this.suiteStarted = function(result) { storeSuite(result); }; this.suiteDone = function(result) { storeSuite(result); }; function storeSuite(result) { suites[result.id] = result; } this.suites = function() { return suites; }; var specs = []; this.specStarted = function(result) { }; this.specDone = function(result) { specs.push(result); }; this.specResults = function(index, length) { return specs.slice(index, index + length); }; this.specs = function() { return specs; }; this.executionTime = function() { return executionTime; }; } return JsApiReporter; };
Version data entries
40 entries across 40 versions & 2 rubygems