diff --git a/__tests__/lib/strings/url-helpers.test.ts b/__tests__/lib/strings/url-helpers.test.ts index 2669570645..606bb6b3f1 100644 --- a/__tests__/lib/strings/url-helpers.test.ts +++ b/__tests__/lib/strings/url-helpers.test.ts @@ -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)