Skip to content

Commit

Permalink
Fix test case to handle email addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Feb 13, 2024
1 parent 429b6fa commit 0edf35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/utils/__tests__/externalLinks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ onlyRunOnCI('externalLinks', () => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
for (const [_linkName, url] of Object.entries(linksGroup)) {
expect(typeof url).toBe('string')
expect(url).toMatch(/^https:/)
expect(url).toMatch(/^(https|mailto):/)
}
}
})
Expand Down

0 comments on commit 0edf35b

Please sign in to comment.