Sha256: 5e12c33bb5b564fa185b642c43580eaf570c61a002809413fe216772cad837d2
Contents?: true
Size: 876 Bytes
Versions: 40
Compression:
Stored size: 876 Bytes
Contents
getJasmineRequireObj().CallTracker = function() { function CallTracker() { var calls = []; this.track = function(context) { calls.push(context); }; this.any = function() { return !!calls.length; }; this.count = function() { return calls.length; }; this.argsFor = function(index) { var call = calls[index]; return call ? call.args : []; }; this.all = function() { return calls; }; this.allArgs = function() { var callArgs = []; for(var i = 0; i < calls.length; i++){ callArgs.push(calls[i].args); } return callArgs; }; this.first = function() { return calls[0]; }; this.mostRecent = function() { return calls[calls.length - 1]; }; this.reset = function() { calls = []; }; } return CallTracker; };
Version data entries
40 entries across 40 versions & 2 rubygems