Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix html extraction tests

+3 -3
+3 -3
__tests__/lib/extractMetaHtml.test.ts
··· 41 41 it.each(cases)( 42 42 'given the html tag %p, returns %p', 43 43 (input, expectedResult) => { 44 - const output = extractHtmlMeta(input) 44 + const output = extractHtmlMeta({html: input as string, hostname: ''}) 45 45 expect(output).toEqual(expectedResult) 46 46 }, 47 47 ) ··· 52 52 title: 'Example Domain', 53 53 description: 'An example website', 54 54 } 55 - const output = extractHtmlMeta(input) 55 + const output = extractHtmlMeta({html: input, hostname: 'example.com'}) 56 56 expect(output).toEqual(expectedOutput) 57 57 }) 58 58 ··· 64 64 'Stunning HD Video ( 1080p ) of Patagonian Nature with Relaxing Native American Shamanic Music. HD footage used from ', 65 65 image: 'https://i.ytimg.com/vi/x6UITRjhijI/sddefault.jpg', 66 66 } 67 - const output = extractHtmlMeta(input) 67 + const output = extractHtmlMeta({html: input, hostname: 'youtube.com'}) 68 68 expect(output).toEqual(expectedOutput) 69 69 }) 70 70 })