From 5ad9f3ad46b6ab0363c4af00dd896777a31736bb Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 29 Aug 2022 04:13:47 +0300 Subject: [PATCH] Update parser.test.js --- tests/parser.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/parser.test.js b/tests/parser.test.js index 6660db9..76458a4 100644 --- a/tests/parser.test.js +++ b/tests/parser.test.js @@ -4,7 +4,7 @@ import Program from '../src/Program' import fs from 'fs' it('can parse valid channels.xml', () => { - const file = fs.readFileSync('./tests/input/example.channels.xml', { encoding: 'utf-8' }) + const file = fs.readFileSync('./tests/__data__/input/example.channels.xml', { encoding: 'utf-8' }) const { channels, site } = parseChannels(file) expect(typeof site).toBe('string') @@ -15,7 +15,7 @@ it('can parse valid channels.xml', () => { it('can parse programs', done => { const channel = new Channel({ xmltv_id: '1tv' }) - const config = require('./input/example.config.js') + const config = require('./__data__/input/example.config.js') parsePrograms({ channel, config }) .then(programs => { @@ -28,7 +28,7 @@ it('can parse programs', done => { it('can parse programs async', done => { const channel = new Channel({ xmltv_id: '1tv' }) - const config = require('./input/async.config.js') + const config = require('./__data__/input/async.config.js') parsePrograms({ channel, config }) .then(programs => {