Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
534 B · 17 lines
TypeScript
at main
123456789101112131415161718import {getPublicUrl} from './embed-cache'
describe('getPublicUrl', () => { it('removes the internal crawler prefix and tracking parameters', () => { expect( getPublicUrl( 'https://witchsky.app/__embed/profile/alice.test/post/abc?utm_source=x#fragment', ), ).toBe('https://witchsky.app/profile/alice.test/post/abc') })
it('leaves a public path public', () => { expect(getPublicUrl('https://witchsky.app/profile/alice.test')).toBe( 'https://witchsky.app/profile/alice.test', ) })})