Skip to content

Commit

Permalink
added more test
Browse files Browse the repository at this point in the history
  • Loading branch information
uksarkar committed Feb 21, 2023
1 parent 16140b1 commit 49a2e12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/validators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14210,6 +14210,7 @@ describe('Validators', () => {
'mailto:info@mail.com?subject=something&body=something else&cc=hello@mail.com,another@mail.com',
'mailto:info@mail.com?subject=something&body=something else&bcc=hello@mail.com,another@mail.com',
'mailto:info@mail.com?subject=something&body=something else&cc=something@mail.com&bcc=hello@mail.com,another@mail.com',
'mailto:',
],
invalid: [
'',
Expand All @@ -14224,6 +14225,8 @@ describe('Validators', () => {
'mailto:valid@gmail.com?subject=anything&body=nothing&cc=&bcc=&key=',
'mailto:hello@world.com?cc=somename',
'mailto:somename',
'mailto:info@mail.com?subject=something&body=something else&cc=something@mail.com&bcc=hello@mail.com,another@mail.com&',
'mailto:?subject=something&body=something else&cc=something@mail.com&bcc=hello@mail.com,another@mail.com&',
],
});
});
Expand Down

0 comments on commit 49a2e12

Please sign in to comment.