UNPKG

jest-allure2-reporter

Version:
13 lines 426 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.wrapFunction = wrapFunction; function wrapFunction(function_, callback) { const wrapper = { [function_.name]() { return Reflect.apply(callback, this, arguments); }, }[function_.name]; wrapper.toString = function_.toString.bind(function_); return wrapper; } //# sourceMappingURL=wrapFunction.js.map