From a04f9a0e51165f434a5e7407dac1e113fe4dcdfb Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Wed, 9 Sep 2020 15:15:03 -0500 Subject: [PATCH] Add tests: `localhost` is a "sneaky link" --- test/modules/link_previews_test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/modules/link_previews_test.js b/test/modules/link_previews_test.js index fb3faa6fafc..29043b154c7 100644 --- a/test/modules/link_previews_test.js +++ b/test/modules/link_previews_test.js @@ -430,6 +430,8 @@ describe('Link previews', () => { it("returns true if the domain doesn't contain a .", () => { assert.isTrue(isLinkSneaky('https://example')); + assert.isTrue(isLinkSneaky('https://localhost')); + assert.isTrue(isLinkSneaky('https://localhost:3000')); }); it('returns true if the domain has any empty labels', () => {