From 08b704d4b10325614864d9bea235c4d6f376e007 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 6 Jun 2026 11:53:37 +0200 Subject: [PATCH] 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. --- test/unit/autolinker_spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/autolinker_spec.js b/test/unit/autolinker_spec.js index f92d148df..5348ab1eb 100644 --- a/test/unit/autolinker_spec.js +++ b/test/unit/autolinker_spec.js @@ -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);