@gatling.io/core
Version:
Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).
9 lines (8 loc) • 374 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.randomSwitchImpl = void 0;
const wrapOn = (jvmOn, wrap) => ({
on: (...choices) => wrap(jvmOn.on(choices.map((c) => c._underlying)))
});
const randomSwitchImpl = (jvmRandomSwitch, wrap) => () => wrapOn(jvmRandomSwitch.randomSwitch(), wrap);
exports.randomSwitchImpl = randomSwitchImpl;