Add test for issue fix:

#44

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-09-24 20:46:33 +01:00
parent 05c9e061dc
commit 57de698c0b

View File

@ -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) {