Update url-helpers.test.ts

This commit is contained in:
Samuel Newman
2025-12-11 12:12:43 +02:00
parent 52a1a7218f
commit e63bec01df
+3 -2
View File
@@ -146,7 +146,8 @@ describe('splitApexDomain', () => {
})
describe('isTrustedUrl', () => {
const cases = [
type Case = [string, boolean]
const cases: Case[] = [
['#', true],
['#profile', true],
['/', true],
@@ -171,7 +172,7 @@ describe('isTrustedUrl', () => {
['https://docs.google.com', false],
['https://google.com/#', false],
['https://blueskywebxzendesk.com', false],
] as [string, boolean][]
]
it.each(cases)('given input uri %p, returns %p', (str, expected) => {
const output = isTrustedUrl(str)