Merge branch 'johnjbarton-noop-timer'

- Merges #1669 from @johnjbarton
This commit is contained in:
Gregg Van Hove
2019-03-13 17:33:33 -07:00
6 changed files with 23 additions and 32 deletions

View File

@@ -1,10 +1,4 @@
getJasmineRequireObj().JsApiReporter = function() {
var noopTimer = {
start: function(){},
elapsed: function(){ return 0; }
};
getJasmineRequireObj().JsApiReporter = function(j$) {
/**
* @name jsApiReporter
* @classdesc {@link Reporter} added by default in `boot.js` to record results for retrieval in javascript code. An instance is made available as `jsApiReporter` on the global object.
@@ -12,7 +6,7 @@ getJasmineRequireObj().JsApiReporter = function() {
* @hideconstructor
*/
function JsApiReporter(options) {
var timer = options.timer || noopTimer,
var timer = options.timer || j$.noopTimer,
status = 'loaded';
this.started = false;