UNPKG

assertthat

Version:
22 lines (21 loc) 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assertActualIsNotContainingAllOf = void 0; const assertArrayIsNotContainingAllOfIterable_1 = require("../../forArrays/assertArrayIsNotContainingAllOfIterable"); const assertSetIsNotContainingAllOfIterable_1 = require("../../forSets/assertSetIsNotContainingAllOfIterable"); const assertStringIsNotContainingAllOfIterable_1 = require("../../forStrings/assertStringIsNotContainingAllOfIterable"); const errors_1 = require("../../../errors"); const typedescriptor_1 = require("typedescriptor"); const assertActualIsNotContainingAllOf = function (actual, expected) { if ((0, typedescriptor_1.isString)(actual)) { return (0, assertStringIsNotContainingAllOfIterable_1.assertStringIsNotContainingAllOfIterable)(actual, expected); } if ((0, typedescriptor_1.isArray)(actual)) { return (0, assertArrayIsNotContainingAllOfIterable_1.assertArrayIsNotContainingAllOfIterable)(actual, expected); } if ((0, typedescriptor_1.isSet)(actual)) { return (0, assertSetIsNotContainingAllOfIterable_1.assertSetIsNotContainingAllOfIterable)(actual, expected); } throw new errors_1.InvalidOperation(); }; exports.assertActualIsNotContainingAllOf = assertActualIsNotContainingAllOf;