matchesEntirely.test.js 366 B

12345678910
  1. import matchesEntirely from './matchesEntirely.js';
  2. describe('matchesEntirely', function () {
  3. it('should work in edge cases', function () {
  4. // No text.
  5. matchesEntirely(undefined, '').should.equal(true); // "OR" in regexp.
  6. matchesEntirely('911231231', '4\d{8}|[1-9]\d{7}').should.equal(false);
  7. });
  8. });
  9. //# sourceMappingURL=matchesEntirely.test.js.map