fix: update parse signature in tests (#315)

pull/320/head
Drew Bell 5 years ago committed by Adam Pash
parent ffb25f34d7
commit 91fb0dfb46

@ -212,7 +212,7 @@ it('returns the title', async () => {
const articleUrl =
'http://www.newyorker.com/tech/elements/hacking-cryptography-and-the-countdown-to-quantum-computing';
const { title } = await Mercury.parse(articleUrl, html, { fallback: false });
const { title } = await Mercury.parse(articleUrl, { html, fallback: false });
// Update these values with the expected values from
// the article.

@ -105,7 +105,7 @@ describe('DeadspinExtractor', () => {
const url =
'http://deadspin.com/remember-when-donald-trump-got-booed-for-butchering-ta-1788216229';
const { content } = await Mercury.parse(url, html, { fallback: false });
const { content } = await Mercury.parse(url, { html, fallback: false });
const $ = cheerio.load(content || '');

@ -118,7 +118,7 @@ describe('NewrepublicComExtractor', () => {
const html = fs.readFileSync(
'./fixtures/newrepublic.com/1480446502259.html'
);
result = await Mercury.parse(url, html, { fallback: false });
result = await Mercury.parse(url, { html, fallback: false });
});
it('minute returns the title', async () => {

@ -121,7 +121,7 @@ describe('WwwThevergeComExtractor', () => {
const url =
'http://www.theverge.com/2016/10/31/13478080/microsoft-surface-studio-design-engineering-interview';
const { content } = await Mercury.parse(url, html, { fallback: false });
const { content } = await Mercury.parse(url, { html, fallback: false });
const $ = cheerio.load(content || '');

@ -50,7 +50,8 @@ describe('WwwUsmagazineComExtractor', () => {
const articleUrl =
'http://www.usmagazine.com/celebrity-news/news/lady-gaga-shares-pic-of-ex-taylor-kinney-with-her-mom-w454419';
const { author } = await Mercury.parse(articleUrl, html, {
const { author } = await Mercury.parse(articleUrl, {
html,
fallback: false,
});

Loading…
Cancel
Save