Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -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 = [];
};
}