diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-04-27 05:25:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 05:25:28 +0100 |
commit | 1af59ca8a7db308325f8964a131d544882cff6e8 (patch) | |
tree | a779d4aee59db8f4ed9bed87759905d055a26640 /__tests__ | |
parent | b10c96f28d35108313aa07b02eecb3c0b4b30770 (diff) | |
download | voidsky-1af59ca8a7db308325f8964a131d544882cff6e8.tar.zst |
Special-case bsky.app/download to open share sheet or copy to clipboard (#3710)
* special-case bsky.app/download to share * Address feedback * Improve detection --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to '__tests__')
-rw-r--r-- | __tests__/lib/strings/url-helpers.test.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/__tests__/lib/strings/url-helpers.test.ts b/__tests__/lib/strings/url-helpers.test.ts index fb4b8f755..0b1b75028 100644 --- a/__tests__/lib/strings/url-helpers.test.ts +++ b/__tests__/lib/strings/url-helpers.test.ts @@ -1,10 +1,10 @@ -import {it, describe, expect} from '@jest/globals' +import {describe, expect, it} from '@jest/globals' import { - linkRequiresWarning, isPossiblyAUrl, - splitApexDomain, isTrustedUrl, + linkRequiresWarning, + splitApexDomain, } from '../../../src/lib/strings/url-helpers' describe('linkRequiresWarning', () => { @@ -170,6 +170,7 @@ describe('isTrustedUrl', () => { ['https://google.com', false], ['https://docs.google.com', false], ['https://google.com/#', false], + ['https://blueskywebxzendesk.com', false], ] it.each(cases)('given input uri %p, returns %p', (str, expected) => { |