File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
packages/metascraper/test/integration/transistor Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ const url = 'https://share.transistor.fm/e/70c487ed'
2525
2626test ( 'transistor.fm' , async t => {
2727 const html = await readFile ( resolve ( __dirname , 'input.html' ) )
28- const metadata = await metascraper ( { html, url } )
28+ const { logo , ... metadata } = await metascraper ( { html, url } )
2929 t . snapshot ( metadata )
30+ t . is ( typeof logo , 'string' )
31+ t . true ( new URL ( logo ) . hostname . endsWith ( 'transistor.fm' ) , logo )
3032} )
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ Generated by [AVA](https://avajs.dev).
1515 description: null,
1616 image: 'https://images.transistor.fm/file/transistor/images/episode/263474/medium_1590257639-artwork.jpg',
1717 lang: null,
18- logo: 'https://assets.transistor.fm/assets/favicon-6e847568a3fbd949ba82be5cb10951e28b51f7f58d6e573235b0cddf494de2c0.ico',
1918 publisher: '#032 – Before and After Product-Market Fit with Peter and Calvin from Segment',
2019 title: 'Transistor Embed | #032 – Before and After Product-Market Fit with Peter and Calvin from Segment',
2120 url: 'https://share.transistor.fm/e/70c487ed',
You can’t perform that action at this time.
0 commit comments