dockest
Version:
Dockest is an integration testing tool aimed at alleviating the process of evaluating unit tests whilst running multi-container Docker applications.
12 lines • 445 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.selectPortMapping = void 0;
const selectPortMapping = (input) => {
if (typeof input !== 'string') {
return input;
}
const [published, target] = input.split(':');
return { published: parseInt(published, 10), target: parseInt(target, 10) };
};
exports.selectPortMapping = selectPortMapping;
//# sourceMappingURL=select-port-mapping.js.map