UNPKG

@johanblumenberg/ts-mockito

Version:
27 lines 942 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CallThroughMethodStub = void 0; var CallThroughMethodStub = (function () { function CallThroughMethodStub(instance, method) { this.instance = instance; this.method = method; } CallThroughMethodStub.prototype.isOneshot = function () { return false; }; CallThroughMethodStub.prototype.getGroupIndex = function () { return -1; }; CallThroughMethodStub.prototype.isApplicable = function (args) { return false; }; CallThroughMethodStub.prototype.execute = function (args, thisArg) { this.result = this.method.apply(thisArg, args); }; CallThroughMethodStub.prototype.getValue = function () { return this.result; }; return CallThroughMethodStub; }()); exports.CallThroughMethodStub = CallThroughMethodStub; //# sourceMappingURL=CallThroughMethodStub.js.map