Skip to content

Commit 683083d

Browse files
committed
test: update snapshot
1 parent 4a6e07c commit 683083d

File tree

9 files changed

+17847
-1555
lines changed

9 files changed

+17847
-1555
lines changed

packages/metascraper/test/integration/business-today/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const url =
2626

2727
test('business-today', async t => {
2828
const html = await readFile(resolve(__dirname, 'input.html'))
29-
const metadata = await metascraper({ html, url })
29+
const { date, ...metadata } = await metascraper({ html, url })
30+
t.is(typeof date, 'string')
3031
t.snapshot(metadata)
3132
})

packages/metascraper/test/integration/business-today/snapshots/index.js.md

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Generated by [AVA](https://avajs.dev).
1111
{
1212
audio: null,
1313
author: null,
14-
date: '2016-05-18T10:09:00.000Z',
1514
description: 'HackerRank is helping companies recruit coding champions through online tests.',
1615
image: 'http://media2.intoday.in/btmt/images/stories/code505_051616043033.jpg',
1716
lang: 'en',
Binary file not shown.

packages/metascraper/test/integration/jewish-business-news/input.html

+267-364
Large diffs are not rendered by default.

packages/metascraper/test/integration/jewish-business-news/snapshots/index.js.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Generated by [AVA](https://avajs.dev).
1313
author: 'Jewish Business News Correspondent',
1414
date: '2016-01-20T21:50:42.000Z',
1515
description: 'The Netanya base company is transforming how developers and DevOps team manage binary artifacts: JFrog’s total capital raised to date is $62 million.',
16-
image: 'https://secure.gravatar.com/avatar/ef610b6b65a143e22530efd42a8c40f8?s=96&d=mm&r=g',
16+
image: 'https://jewishbusinessnews.com/wp-content/uploads/2016/01/Shlomi-Ben-Haim-JFrog-Co-Founder-and-CEO-Source-JFrog-e1453326404147.jpg',
1717
lang: 'en',
18-
logo: 'https://media.jewishbusinessnews.com/2021/08/20092955/cropped-favicon-270x270.jpg',
18+
logo: 'https://i0.wp.com/jewishbusinessnews.com/wp-content/uploads/2021/08/cropped-favicon.jpg?fit=192%2C192&ssl=1',
1919
publisher: 'Jewish Business News',
2020
title: 'Israeli startup JFrog raises $50 million in C round',
2121
url: 'https://jewishbusinessnews.com/2016/01/20/israeli-startup-jfrog-raises-50-million-in-c-round/',
Binary file not shown.

packages/metascraper/test/integration/the-boston-globe/input.html

+17,569-1,180
Large diffs are not rendered by default.

packages/metascraper/test/integration/the-boston-globe/snapshots/index.js.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Generated by [AVA](https://avajs.dev).
1010
1111
{
1212
audio: null,
13-
author: 'Mike Isaac',
14-
date: '2016-05-03T18:58:00.000Z',
15-
description: 'Ellen Pao spent the last few years spotlighting the technology industry’s lack of diversity, in court and beyond. Erica Baker caused a stir at Google when she started a spreadsheet last year for employees to share their salaries, highlighting the pay disparities between those of different genders doing the same job.',
16-
image: 'http://c.o0bg.com/rf/image_585w/Boston/2011-2020/2016/05/04/BostonGlobe.com/Business/Images/TECH_WOMEN_INCLUSION-6183.JPG',
13+
author: 'Mike Isaac New York Times ,May 3, 2016, 2:58 p.m.',
14+
date: '2016-05-03T18:58:25.000Z',
15+
description: 'The group, which includes Ellen Pao, is starting an effort to collect and share data to help diversify rank-and-file tech employees.',
16+
image: 'https://bostonglobe-prod.cdn.arcpublishing.com/resizer/v2/3WHAMLQR5AI6NMHQML3A5EGVAM.JPG?auth=aab8f9ed9b843754f694e9654a4c85f32f0da2af5a0ded929ca0207ea2bc4465&width=1440',
1717
lang: 'en',
18-
logo: 'https://c.o0bg.com/rw/SysConfig/WebPortal/BostonGlobe/Framework/images/bookmark-114.png',
19-
publisher: 'BostonGlobe.com',
20-
title: 'Women in Tech Band Together to Track Diversity, After Hours - The Boston Globe',
18+
logo: 'https://www.bostonglobe.com/pf/resources/images/icons/favicon-32x32.png?v=bostonGlobe&d=511',
19+
publisher: 'The Boston Globe',
20+
title: 'Women in tech band together to track diversity, after hours - The Boston Globe',
2121
url: 'https://www.bostonglobe.com/business/2016/05/03/women-tech-band-together-track-diversity-after-hours/mWL9Pte1lx34HXMqXhEY4H/story.html',
2222
video: null,
2323
}
Binary file not shown.

0 commit comments

Comments
 (0)