UNPKG

@ply-ct/ply

Version:

REST API Automated Testing

25 lines 755 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Import = void 0; const postman_1 = require("./postman"); const insomnia_1 = require("./insomnia"); class Import { constructor(format, logger) { this.format = format; this.logger = logger; } async doImport(retrieval, options) { switch (this.format) { case 'postman': { await new postman_1.Postman(this.logger).import(retrieval, options); break; } case 'insomnia': { await new insomnia_1.Insomnia(this.logger).import(retrieval, options); break; } } } } exports.Import = Import; //# sourceMappingURL=import.js.map