matchesEntirely.test.js 543 B

123456789101112131415
  1. "use strict";
  2. var _matchesEntirely = _interopRequireDefault(require("./matchesEntirely.js"));
  3. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  4. describe('matchesEntirely', function () {
  5. it('should work in edge cases', function () {
  6. // No text.
  7. (0, _matchesEntirely["default"])(undefined, '').should.equal(true); // "OR" in regexp.
  8. (0, _matchesEntirely["default"])('911231231', '4\d{8}|[1-9]\d{7}').should.equal(false);
  9. });
  10. });
  11. //# sourceMappingURL=matchesEntirely.test.js.map