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 ea03e78
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 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
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 ea03e78

Please sign in to comment.