Innovenergy_trunk/frontend/node_modules/testcafe-legacy-api/lib/utils/promisify.js

12 lines
428 B
JavaScript
Raw Permalink Normal View History

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const pify_1 = __importDefault(require("pify"));
const pinkie_1 = __importDefault(require("pinkie"));
function default_1(fn) {
return (0, pify_1.default)(fn, pinkie_1.default);
}
exports.default = default_1;