From 4b9d0bd6782a9b93edfadb1dbb9f9ab9f757fc58 Mon Sep 17 00:00:00 2001
From: freearhey <7253922+freearhey@users.noreply.github.com>
Date: Tue, 19 Sep 2023 06:15:48 +0300
Subject: [PATCH] Update tests data
---
tests/__data__/expected/guides/en/example.com.xml | 1 +
.../__data__/input/sites/epg-grab/epg-grab.channels.xml | 1 +
tests/__data__/input/sites/epg-grab/epg-grab.config.js | 9 +++++++--
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/tests/__data__/expected/guides/en/example.com.xml b/tests/__data__/expected/guides/en/example.com.xml
index 0f94474c..e99bf680 100644
--- a/tests/__data__/expected/guides/en/example.com.xml
+++ b/tests/__data__/expected/guides/en/example.com.xml
@@ -1,4 +1,5 @@
Channel 1https://example.com
+Channel 2https://example.com
Program1
\ No newline at end of file
diff --git a/tests/__data__/input/sites/epg-grab/epg-grab.channels.xml b/tests/__data__/input/sites/epg-grab/epg-grab.channels.xml
index 561ce412..75fa7c3c 100644
--- a/tests/__data__/input/sites/epg-grab/epg-grab.channels.xml
+++ b/tests/__data__/input/sites/epg-grab/epg-grab.channels.xml
@@ -2,6 +2,7 @@
Channel 1
+ Channel 2
Channel 1
\ No newline at end of file
diff --git a/tests/__data__/input/sites/epg-grab/epg-grab.config.js b/tests/__data__/input/sites/epg-grab/epg-grab.config.js
index 493907db..dca7aeea 100644
--- a/tests/__data__/input/sites/epg-grab/epg-grab.config.js
+++ b/tests/__data__/input/sites/epg-grab/epg-grab.config.js
@@ -1,10 +1,15 @@
module.exports = {
site: 'example.com',
- days: 2,
+ days: 1,
+ request: {
+ timeout: 1000
+ },
url() {
return `https://example.com`
},
- parser() {
+ parser({ channel }) {
+ if (channel.xmltv_id === 'Channel2.us') return []
+
return [
{
title: 'Program1',