wiremock-mapper
Version:
DSL for setting up WireMock mappings.
25 lines • 908 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScenarioBuilderImpl = void 0;
var ScenarioBuilderImpl = /** @class */ (function () {
function ScenarioBuilderImpl() {
var _this = this;
this.jsonObject = {};
this.toJSON = function () { return _this.jsonObject; };
}
ScenarioBuilderImpl.prototype.name = function (name) {
this.jsonObject.scenarioName = name;
return this;
};
ScenarioBuilderImpl.prototype.newState = function (stateName) {
this.jsonObject.newScenarioState = stateName;
return this;
};
ScenarioBuilderImpl.prototype.requiredState = function (stateName) {
this.jsonObject.requiredScenarioState = stateName;
return this;
};
return ScenarioBuilderImpl;
}());
exports.ScenarioBuilderImpl = ScenarioBuilderImpl;
//# sourceMappingURL=scenario_builder.js.map