UNPKG

@qaflag/core

Version:

Base requirements for the QA Flag library

29 lines 824 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NumberMapValue = void 0; const test_1 = require("../assertions/test"); const values_1 = require("./values"); class NumberMapValue 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.NumericValue(this.input[key], { name: String(key), context: this.context, }); } } exports.NumberMapValue = NumberMapValue; //# sourceMappingURL=number-map.js.map