UNPKG

offensive

Version:

Fast and boilerplate-free precondition checks for javascript.

26 lines (25 loc) 924 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.registerIn = exports.instance = exports.EmptyStringAssertion = void 0; var EmptyStringAssertion_1 = require("./EmptyStringAssertion"); exports.EmptyStringAssertion = EmptyStringAssertion_1.default; var aString = require("../aString"); var length = require("../length"); var and = require("../../operators/and"); var connectors = require("../../connectors"); exports.default = EmptyStringAssertion_1.default; exports.instance = new EmptyStringAssertion_1.default(); /** * @author Maciej Chałapuk (maciej@chalapuk.pl) */ function registerIn(registry) { aString.registerIn(registry); length.registerIn(registry); and.registerIn(registry); connectors.registerIn(registry); registry.addAssertion({ anEmptyString: exports.instance, emptyString: exports.instance, }); } exports.registerIn = registerIn;