Bluesky app fork with some witchin' additions 馃挮 witchsky.app
bluesky fork client
at main 13 lines 440 B view raw
1import {getLikelyType, LikelyType} from '../../src/lib/link-meta/link-meta' 2 3describe('getLikelyType', () => { 4 it('correctly handles non-parsed url', async () => { 5 const output = await getLikelyType('https://example.com') 6 expect(output).toEqual(LikelyType.HTML) 7 }) 8 9 it('handles non-string urls without crashing', async () => { 10 const output = await getLikelyType('123') 11 expect(output).toEqual(LikelyType.Other) 12 }) 13})