Skip to content

Commit

Permalink
Restore test (#60)
Browse files Browse the repository at this point in the history
This test was recently removed in #52 due to a change on that PR that
was since undone. It is still relevant, so it has been restored.
  • Loading branch information
Gudahtt authored Feb 15, 2023
1 parent f365563 commit d3f6da0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ describe('Phishing warning page', () => {
expect(queryByText(container, 'Deceptive site ahead')).not.toBeNull();
});

it('should have correct default "New issue" link', () => {
const newIssueLink = window.document.getElementById('new-issue-link');
expect(newIssueLink?.getAttribute('href')).toBe(
'https://github.com/metamask/eth-phishing-detect/issues/new',
);
});

it('should correctly construct "New issue" link', async () => {
window.document.location.href = getUrl(
'example.com',
Expand Down

0 comments on commit d3f6da0

Please sign in to comment.