Skip to content

Commit 38719be

Browse files
committed
test: update snapshot
1 parent 162fdf9 commit 38719be

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/metascraper/test/integration/transistor/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const url = 'https://share.transistor.fm/e/70c487ed'
2525

2626
test('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
})

packages/metascraper/test/integration/transistor/snapshots/index.js.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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',
Binary file not shown.

0 commit comments

Comments
 (0)