gherkin-ast
Version:
JS model for Gherkin feature files
29 lines • 962 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TagFormat = void 0;
var TagFormat;
(function (TagFormat) {
TagFormat[TagFormat["PARAMETERLESS"] = 0] = "PARAMETERLESS";
TagFormat[TagFormat["FUNCTIONAL"] = 1] = "FUNCTIONAL";
TagFormat[TagFormat["ASSIGNMENT"] = 2] = "ASSIGNMENT";
TagFormat[TagFormat["UNDERSCORE"] = 3] = "UNDERSCORE";
})(TagFormat || (exports.TagFormat = TagFormat = {}));
const DEFAULT_CONFIG = {
tagFormat: TagFormat.FUNCTIONAL,
};
class Configuration {
constructor(config = DEFAULT_CONFIG) {
this.config = config;
}
set(config) {
var _a;
this.config = {
tagFormat: (_a = config === null || config === void 0 ? void 0 : config.tagFormat) !== null && _a !== void 0 ? _a : DEFAULT_CONFIG.tagFormat,
};
}
get() {
return this.config;
}
}
exports.default = new Configuration();
//# sourceMappingURL=parseConfig.js.map