Add test for issue fix:
#44 Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
05c9e061dc
commit
57de698c0b
@ -9,7 +9,7 @@ describe("Sanitize Email", () => {
|
|||||||
"I%Have{Special}%Characters@example.com",
|
"I%Have{Special}%Characters@example.com",
|
||||||
"Basic.address@example.com",
|
"Basic.address@example.com",
|
||||||
`"very.(),:;<>[]\".VERY.\"very\ \"very\".unusual"@example.com`,
|
`"very.(),:;<>[]\".VERY.\"very\ \"very\".unusual"@example.com`,
|
||||||
"THIS_EMAIL_CONTAINS_CAPITALISED_DOMAIN@EXAMPLE.COM"
|
"THIS_EMAIL_CONTAINS_CAPITALISED_DOMAIN@EXAMPLE.COM",
|
||||||
];
|
];
|
||||||
const expectedOutput = "example.com";
|
const expectedOutput = "example.com";
|
||||||
for (const addr of inputs) {
|
for (const addr of inputs) {
|
||||||
|
Loading…
Reference in New Issue
Block a user