From 49a2e1280e3faab5ce3be6623130f608173a3bab Mon Sep 17 00:00:00 2001 From: Utpal Sarkar Date: Tue, 21 Feb 2023 20:35:25 +0600 Subject: [PATCH] added more test --- test/validators.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/validators.test.js b/test/validators.test.js index c45520b39..a778a7eeb 100644 --- a/test/validators.test.js +++ b/test/validators.test.js @@ -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: [ '', @@ -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&', ], }); });