UNPKG

ts-mock-imports

Version:

Intuitive mocking for Typescript class imports

16 lines 498 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Manager = void 0; var Manager = (function () { function Manager(module, importName) { this.module = module; this.importName = importName; this.original = this.module[this.importName]; } Manager.prototype.restore = function () { this.module[this.importName] = this.original; }; return Manager; }()); exports.Manager = Manager; //# sourceMappingURL=manager.js.map