Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
witmicko committed Apr 20, 2023
1 parent 0a30d24 commit 5187097
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/util/linkCheck.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5187097

Please sign in to comment.