@amanat-qa/utils-frontend 5.4.2 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -137,6 +137,14 @@ var Randomizer = /*#__PURE__*/function () {
|
|
|
137
137
|
}
|
|
138
138
|
return element;
|
|
139
139
|
}
|
|
140
|
+
}, {
|
|
141
|
+
key: "getRandomInsuranceType",
|
|
142
|
+
value: function getRandomInsuranceType(group) {
|
|
143
|
+
var insuranceGroup = JSONLoader.testData.insurance_group[group];
|
|
144
|
+
var keys = Object.keys(insuranceGroup);
|
|
145
|
+
var randomKey = keys[this.getRandomInteger(keys.length - 1, 0)];
|
|
146
|
+
return insuranceGroup[randomKey];
|
|
147
|
+
}
|
|
140
148
|
}]);
|
|
141
149
|
}();
|
|
142
150
|
module.exports = Randomizer;
|