From 7ca19d2e6f5d247309b51d7f27d39ed5ceec9bd5 Mon Sep 17 00:00:00 2001 From: Jeremy Mack Date: Wed, 14 Sep 2016 08:09:14 -0500 Subject: [PATCH] test: fix fixture locations --- .../generic/content/scoring/find-top-candidate.test.js | 2 +- src/extractors/generic/index.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extractors/generic/content/scoring/find-top-candidate.test.js b/src/extractors/generic/content/scoring/find-top-candidate.test.js index 599987cf..349affc4 100644 --- a/src/extractors/generic/content/scoring/find-top-candidate.test.js +++ b/src/extractors/generic/content/scoring/find-top-candidate.test.js @@ -46,7 +46,7 @@ describe('findTopCandidate($)', () => { }); 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); $ = scoreContent($); diff --git a/src/extractors/generic/index.test.js b/src/extractors/generic/index.test.js index 7893b2c4..5b1c343f 100644 --- a/src/extractors/generic/index.test.js +++ b/src/extractors/generic/index.test.js @@ -6,7 +6,7 @@ import GenericExtractor from './index'; describe('GenericExtractor', () => { describe('extract(opts)', () => { 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 { title, @@ -30,7 +30,7 @@ describe('GenericExtractor', () => { }); 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 { author,