mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-12 21:21:04 +02:00
Add one more unit-test case for invalid email domains in the Autolinker class
This improves coverage for a branch of the `Autolinker` class that wasn't previously tested.
This commit is contained in:
parent
9c437e6ab4
commit
08b704d4b1
@ -149,6 +149,7 @@ describe("autolinker", function () {
|
||||
"abc.example.com", // URL without scheme.
|
||||
"JD?M$0QP)lKn06l1apKDC@\\qJ4B!!(5m+j.7F790m", // Not a valid email.
|
||||
"262@0.302304", // Invalid domain.
|
||||
"foo@123.456", // Invalid domain.
|
||||
].join("\n")
|
||||
);
|
||||
expect(matches.length).toEqual(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user