Skip to content

Commit

Permalink
test: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Oct 18, 2024
1 parent 4a6e07c commit 683083d
Show file tree
Hide file tree
Showing 9 changed files with 17,847 additions and 1,555 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const url =

test('business-today', async t => {
const html = await readFile(resolve(__dirname, 'input.html'))
const metadata = await metascraper({ html, url })
const { date, ...metadata } = await metascraper({ html, url })
t.is(typeof date, 'string')
t.snapshot(metadata)
})
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Generated by [AVA](https://avajs.dev).
{
audio: null,
author: null,
date: '2016-05-18T10:09:00.000Z',
description: 'HackerRank is helping companies recruit coding champions through online tests.',
image: 'http://media2.intoday.in/btmt/images/stories/code505_051616043033.jpg',
lang: 'en',
Expand Down
Binary file not shown.
631 changes: 267 additions & 364 deletions packages/metascraper/test/integration/jewish-business-news/input.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Generated by [AVA](https://avajs.dev).
author: 'Jewish Business News Correspondent',
date: '2016-01-20T21:50:42.000Z',
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.',
image: 'https://secure.gravatar.com/avatar/ef610b6b65a143e22530efd42a8c40f8?s=96&d=mm&r=g',
image: 'https://jewishbusinessnews.com/wp-content/uploads/2016/01/Shlomi-Ben-Haim-JFrog-Co-Founder-and-CEO-Source-JFrog-e1453326404147.jpg',
lang: 'en',
logo: 'https://media.jewishbusinessnews.com/2021/08/20092955/cropped-favicon-270x270.jpg',
logo: 'https://i0.wp.com/jewishbusinessnews.com/wp-content/uploads/2021/08/cropped-favicon.jpg?fit=192%2C192&ssl=1',
publisher: 'Jewish Business News',
title: 'Israeli startup JFrog raises $50 million in C round',
url: 'https://jewishbusinessnews.com/2016/01/20/israeli-startup-jfrog-raises-50-million-in-c-round/',
Expand Down
Binary file not shown.
18,749 changes: 17,569 additions & 1,180 deletions packages/metascraper/test/integration/the-boston-globe/input.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Generated by [AVA](https://avajs.dev).
{
audio: null,
author: 'Mike Isaac',
date: '2016-05-03T18:58:00.000Z',
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.',
image: 'http://c.o0bg.com/rf/image_585w/Boston/2011-2020/2016/05/04/BostonGlobe.com/Business/Images/TECH_WOMEN_INCLUSION-6183.JPG',
author: 'Mike Isaac New York Times ,May 3, 2016, 2:58 p.m.',
date: '2016-05-03T18:58:25.000Z',
description: 'The group, which includes Ellen Pao, is starting an effort to collect and share data to help diversify rank-and-file tech employees.',
image: 'https://bostonglobe-prod.cdn.arcpublishing.com/resizer/v2/3WHAMLQR5AI6NMHQML3A5EGVAM.JPG?auth=aab8f9ed9b843754f694e9654a4c85f32f0da2af5a0ded929ca0207ea2bc4465&width=1440',
lang: 'en',
logo: 'https://c.o0bg.com/rw/SysConfig/WebPortal/BostonGlobe/Framework/images/bookmark-114.png',
publisher: 'BostonGlobe.com',
title: 'Women in Tech Band Together to Track Diversity, After Hours - The Boston Globe',
logo: 'https://www.bostonglobe.com/pf/resources/images/icons/favicon-32x32.png?v=bostonGlobe&d=511',
publisher: 'The Boston Globe',
title: 'Women in tech band together to track diversity, after hours - The Boston Globe',
url: 'https://www.bostonglobe.com/business/2016/05/03/women-tech-band-together-track-diversity-after-hours/mWL9Pte1lx34HXMqXhEY4H/story.html',
video: null,
}
Binary file not shown.

0 comments on commit 683083d

Please sign in to comment.