Updating NPM dependencies
This commit is contained in:
18
node_modules/jest-jasmine2/build/jasmine/CallTracker.js
generated
vendored
18
node_modules/jest-jasmine2/build/jasmine/CallTracker.js
generated
vendored
@@ -72,28 +72,28 @@ class CallTracker {
|
||||
|
||||
let calls = [];
|
||||
|
||||
this.track = function(context) {
|
||||
this.track = function (context) {
|
||||
calls.push(context);
|
||||
};
|
||||
|
||||
this.any = function() {
|
||||
this.any = function () {
|
||||
return !!calls.length;
|
||||
};
|
||||
|
||||
this.count = function() {
|
||||
this.count = function () {
|
||||
return calls.length;
|
||||
};
|
||||
|
||||
this.argsFor = function(index) {
|
||||
this.argsFor = function (index) {
|
||||
const call = calls[index];
|
||||
return call ? call.args : [];
|
||||
};
|
||||
|
||||
this.all = function() {
|
||||
this.all = function () {
|
||||
return calls;
|
||||
};
|
||||
|
||||
this.allArgs = function() {
|
||||
this.allArgs = function () {
|
||||
const callArgs = [];
|
||||
|
||||
for (let i = 0; i < calls.length; i++) {
|
||||
@@ -103,15 +103,15 @@ class CallTracker {
|
||||
return callArgs;
|
||||
};
|
||||
|
||||
this.first = function() {
|
||||
this.first = function () {
|
||||
return calls[0];
|
||||
};
|
||||
|
||||
this.mostRecent = function() {
|
||||
this.mostRecent = function () {
|
||||
return calls[calls.length - 1];
|
||||
};
|
||||
|
||||
this.reset = function() {
|
||||
this.reset = function () {
|
||||
calls = [];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user