Skip to content

Commit

Permalink
Merge pull request #735 from microlinkhq/test
Browse files Browse the repository at this point in the history
test: update snapshots
  • Loading branch information
Kikobeats authored Jan 1, 2025
2 parents d126e2e + 764d578 commit 54aea82
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 7,127 deletions.
2 changes: 1 addition & 1 deletion packages/metascraper-audio/test/providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ test('transistor.fm (twitter:player)', async t => {

t.is(
metadata.audio,
'https://chrt.fm/track/637E/2.gum.fm/op3.dev/e/dts.podtrac.com/redirect.mp3/media.transistor.fm/e83b42d0/9e93424b.mp3?src=player'
'https://2.gum.fm/op3.dev/e/dts.podtrac.com/redirect.mp3/media.transistor.fm/e83b42d0/9e93424b.mp3?src=player'
)
})
10 changes: 7 additions & 3 deletions packages/metascraper-helpers/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ test('.url', t => {
t.is(
url(
'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
{ url: 'https://kikobeats.com/' }
{
url: 'https://kikobeats.com/'
}
),
'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'
)
Expand All @@ -149,7 +151,9 @@ test('.url', t => {
t.is(
url(
'http://cdn2.cloudpro.co.uk/sites/cloudprod7/files/4/29//handshake_0.jpg',
{ url: 'http://www.cloudpro.co.uk/go/6024' }
{
url: 'http://www.cloudpro.co.uk/go/6024'
}
),
'http://cdn2.cloudpro.co.uk/sites/cloudprod7/files/4/29/handshake_0.jpg'
)
Expand Down Expand Up @@ -389,7 +393,7 @@ test('.date', t => {
t.is(date(undefined), undefined)
t.is(date(null), undefined)
t.is(date('null'), undefined)
t.is(date('Jun 20'), '2024-06-20T12:00:00.000Z')
t.is(date('Jun 20'), '2025-06-20T12:00:00.000Z')
t.is(date('Jun 20 2018'), '2018-06-20T12:00:00.000Z')
t.is(date('Jun 2018'), '2018-06-01T12:00:00.000Z')
t.is(date(2010), '2010-01-01T00:00:00.000Z')
Expand Down
5 changes: 2 additions & 3 deletions packages/metascraper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@
"scripts": {
"lint": "tsd",
"pretest": "npm run lint",
"test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
"test": "NODE_PATH=.. TZ=UTC ava"
},
"license": "MIT",
"ava": {
"failFast": true,
"timeout": "5m"
"failFast": true
},
"tsd": {
"directory": "test/types"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
{
audio: 'https://chrt.fm/track/EB7BD2/media.transistor.fm/70c487ed/f3249e4a.mp3?src=player',
audio: 'https://media.transistor.fm/70c487ed/f3249e4a.mp3?src=player',
author: '—Dawson Whitfield of Logojoy ($70K/mo)',
date: '2017-10-11T12:00:00.000Z',
description: 'Why is it so difficult to recognize product-market fit before you find it? And how do you find it, anyway? Learn about the struggles the team behind Seg…',
Expand Down
Binary file not shown.
31 changes: 0 additions & 31 deletions packages/metascraper/test/integration/washington-post/index.js

This file was deleted.

Loading

0 comments on commit 54aea82

Please sign in to comment.