matchesEntirely.test.js 305 B

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