UNPKG

wiremock-mapper

Version:
25 lines 908 B
"use strict"; 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