mirror of
https://github.com/postlight/mercury-parser
synced 2024-11-05 12:00:13 +00:00
test: fix fixture locations
This commit is contained in:
parent
7e2a34945f
commit
7ca19d2e6f
@ -46,7 +46,7 @@ describe('findTopCandidate($)', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('appends a sibling with a good enough score', () => {
|
it('appends a sibling with a good enough score', () => {
|
||||||
const html = fs.readFileSync('../fixtures/latimes.html', 'utf-8');
|
const html = fs.readFileSync('./fixtures/latimes.html', 'utf-8');
|
||||||
|
|
||||||
let $ = cheerio.load(html);
|
let $ = cheerio.load(html);
|
||||||
$ = scoreContent($);
|
$ = scoreContent($);
|
||||||
|
@ -6,7 +6,7 @@ import GenericExtractor from './index';
|
|||||||
describe('GenericExtractor', () => {
|
describe('GenericExtractor', () => {
|
||||||
describe('extract(opts)', () => {
|
describe('extract(opts)', () => {
|
||||||
it('extracts this old LA Times article', () => {
|
it('extracts this old LA Times article', () => {
|
||||||
const html = fs.readFileSync('../fixtures/latimes.html', 'utf-8');
|
const html = fs.readFileSync('./fixtures/latimes.html', 'utf-8');
|
||||||
|
|
||||||
const {
|
const {
|
||||||
title,
|
title,
|
||||||
@ -30,7 +30,7 @@ describe('GenericExtractor', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('extracts html and returns the article title', () => {
|
it('extracts html and returns the article title', () => {
|
||||||
const html = fs.readFileSync('../fixtures/wired.html', 'utf-8');
|
const html = fs.readFileSync('./fixtures/wired.html', 'utf-8');
|
||||||
|
|
||||||
const {
|
const {
|
||||||
author,
|
author,
|
||||||
|
Loading…
Reference in New Issue
Block a user