Skip to content

Commit

Permalink
test: add more complex regex test
Browse files Browse the repository at this point in the history
  • Loading branch information
lekterable committed May 4, 2020
1 parent b3f6531 commit bdf771c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ describe('isRegexy', () => {
expect(isRegexy('/development/')).toBe(true)
})

it('should validate complex Regex string', () => {
expect(isRegexy('/(epic|feat|fix|chore)/DEV-\\d{4}/i')).toBe(true)
})

it('should validate Regex string with flag', () => {
expect(isRegexy('/development/i')).toBe(true)
})
Expand Down

0 comments on commit bdf771c

Please sign in to comment.