UNPKG

tcompare

Version:

A comprehensive comparison library, for use in test frameworks

20 lines 733 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MatchOnlyStrict = void 0; const match_strict_js_1 = require("./match-strict.js"); const same_js_1 = require("./same.js"); /** * this uses the test method from {@link tcompare!match-strict.MatchStrict}, * but requires that *only* the specified fields in the pattern are present in * the object. * * It does still allow a field to be present in the object and not the pattern * if the value is set to undefined. */ class MatchOnlyStrict extends same_js_1.Same { test() { return match_strict_js_1.MatchStrict.prototype.test.call(this); } } exports.MatchOnlyStrict = MatchOnlyStrict; //# sourceMappingURL=match-only-strict.js.map