Skip to content

Commit

Permalink
test: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 25, 2024
1 parent 87f5f7a commit b421313
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/metascraper/test/integration/bloomberg/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict'

const { readFile } = require('fs/promises')
const test = require('ava')
const { resolve } = require('path')
const test = require('ava')

const metascraper = require('../../..')([
require('metascraper-author')(),
Expand Down
3 changes: 2 additions & 1 deletion packages/metascraper/test/integration/hola/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const url =

test('hola', async t => {
const html = await readFile(resolve(__dirname, 'input.html'))
const metadata = await metascraper({ html, url })
const { logo, ...metadata } = await metascraper({ html, url })
t.snapshot(metadata)
t.true(logo.includes('apple-touch-icon'))
})
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Generated by [AVA](https://avajs.dev).
description: '“She is gorgeous. Her vibe and personality are amazing. We had a great time working together,” Rauw said about Bruna.',
image: 'https://www.hola.com/us/horizon/landscape/2ec6ca11d80b-new-york-new-york-rauw-alejandro-and-bruna-marquezine-are-seen-during-a-photosho.jpg?im=Resize=(1200)',
lang: 'en',
logo: 'https://www.hola.com/us/apple-touch-icon-180x180.png',
publisher: 'Hola! US',
title: 'Rauw Alejandro and Bruna Marquezine on the dreams they want to accomplish: ‘To have kids and a serene love’',
url: 'https://www.hola.com/us/celebrities/20240624701307/rauw-alejandro-bruna-marquezine-dreams-to-accomplish/',
Expand Down
Binary file not shown.
4 changes: 3 additions & 1 deletion packages/metascraper/test/integration/sfstandard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const metascraper = require('../../..')([
require('metascraper-author')(),
require('metascraper-date')(),
require('metascraper-description')(),
require('metascraper-audio')(),
require('metascraper-video')(),
require('metascraper-image')(),
require('metascraper-lang')(),
require('metascraper-logo')(),
Expand All @@ -22,7 +24,7 @@ const metascraper = require('../../..')([
const url =
'https://sfstandard.com/2024/06/24/service-fee-restaurants-san-francisco/'

test('sfstandard', async t => {
;(process.env.CI ? test.skip : test)('sfstandard', async t => {
const html = await readFile(resolve(__dirname, 'input.html'))
const metadata = await metascraper({ html, url })
t.snapshot(metadata)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
{
audio: null,
author: 'lsariasfstandard.com',
date: '2024-06-24T18:59:54.000Z',
description: 'Diners hate them. Owners say they need them. But in the raging battle over restaurant service fees, it’s servers and cooks who are on the front lines.',
Expand All @@ -18,4 +19,5 @@ Generated by [AVA](https://avajs.dev).
publisher: 'The San Francisco Standard',
title: 'Restaurant workers fear they could pay highest cost in junk-fee battle',
url: 'https://sfstandard.com/2024/06/24/service-fee-restaurants-san-francisco/',
video: null,
}
Binary file not shown.

0 comments on commit b421313

Please sign in to comment.