Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
1234567891011121314import {getLikelyType, LikelyType} from '../../src/lib/link-meta/link-meta'
describe('getLikelyType', () => { it('correctly handles non-parsed url', async () => { const output = await getLikelyType('https://example.com') expect(output).toEqual(LikelyType.HTML) })
it('handles non-string urls without crashing', async () => { const output = await getLikelyType('123') expect(output).toEqual(LikelyType.Other) })})