@qaflag/core
Version:
Base requirements for the QA Flag library
29 lines • 823 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringMapValue = void 0;
const test_1 = require("../assertions/test");
const values_1 = require("./values");
class StringMapValue extends values_1.ValueAbstract {
constructor(input, opts) {
super(input, opts);
this.input = input;
this.opts = opts;
}
get must() {
return (0, test_1.test)(this, 'must');
}
get should() {
return (0, test_1.test)(this, 'should');
}
get could() {
return (0, test_1.test)(this, 'could');
}
find(key) {
return new values_1.StringValue(this.input[key], {
name: String(key),
context: this.context,
});
}
}
exports.StringMapValue = StringMapValue;
//# sourceMappingURL=string-map.js.map