From 5187097159cd09c2ef66c56f218c4b7f893695ec Mon Sep 17 00:00:00 2001 From: witmicko Date: Thu, 13 Apr 2023 09:53:51 +0100 Subject: [PATCH] more tests --- app/util/linkCheck.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/util/linkCheck.test.ts b/app/util/linkCheck.test.ts index f74fdd1249b..ffd18494b6d 100644 --- a/app/util/linkCheck.test.ts +++ b/app/util/linkCheck.test.ts @@ -15,6 +15,8 @@ jest.mock('../core/Engine', () => ({ describe('linkCheck', () => { it('should correctly check links for safety', () => { + expect(isLinkSafe('htps://ww.example.com/')).toEqual(false); + expect(isLinkSafe('https://ww.example.com/')).toEqual(true); expect(isLinkSafe('http://example com/page?id=123')).toEqual(false); expect(isLinkSafe('https://www.example.com/')).toEqual(true); expect(isLinkSafe('http://phishing.com')).toEqual(false);