Merge pull request #1 from postlight/test-fix-fixture-locations

Fix Fixture Locations
This commit is contained in:
Adam Pash 2016-09-14 10:34:50 -04:00 committed by GitHub
commit 547ee2b4ca
2 changed files with 3 additions and 3 deletions

View File

@ -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($);

View File

@ -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,