From 284376aa83a7a535b84370acafb23de647b2d22b Mon Sep 17 00:00:00 2001
From: freearhey <7253922+freearhey@users.noreply.github.com>
Date: Wed, 19 Jul 2023 04:16:05 +0300
Subject: [PATCH] Update tests/__data__
---
.../__data__/expected/guides/da/allente.se.xml | 4 ----
.../expected/guides/da/allente.se.xml.gz | Bin 452 -> 0 bytes
.../__data__/expected/guides/en/directv.com.xml | 3 ---
.../expected/guides/en/directv.com.xml.gz | Bin 200 -> 0 bytes
.../__data__/expected/guides/en/example.com.xml | 4 ++++
tests/__data__/expected/guides/en/sky.com.xml | 4 ----
.../__data__/expected/guides/en/sky.com.xml.gz | Bin 377 -> 0 bytes
.../expected/guides/en/virginmedia.com.xml | 4 ----
.../expected/guides/en/virginmedia.com.xml.gz | Bin 378 -> 0 bytes
.../__data__/expected/guides/fr/example.com.xml | 4 ++++
tests/__data__/expected/guides/fr/sky.com.xml | 6 ------
.../__data__/expected/guides/fr/sky.com.xml.gz | Bin 452 -> 0 bytes
.../input/sites/epg-grab/epg-grab.channels.xml | 7 +++++++
.../input/sites/epg-grab/epg-grab.config.js | 16 ++++++++++++++++
14 files changed, 31 insertions(+), 21 deletions(-)
delete mode 100644 tests/__data__/expected/guides/da/allente.se.xml
delete mode 100644 tests/__data__/expected/guides/da/allente.se.xml.gz
delete mode 100644 tests/__data__/expected/guides/en/directv.com.xml
delete mode 100644 tests/__data__/expected/guides/en/directv.com.xml.gz
create mode 100644 tests/__data__/expected/guides/en/example.com.xml
delete mode 100644 tests/__data__/expected/guides/en/sky.com.xml
delete mode 100644 tests/__data__/expected/guides/en/sky.com.xml.gz
delete mode 100644 tests/__data__/expected/guides/en/virginmedia.com.xml
delete mode 100644 tests/__data__/expected/guides/en/virginmedia.com.xml.gz
create mode 100644 tests/__data__/expected/guides/fr/example.com.xml
delete mode 100644 tests/__data__/expected/guides/fr/sky.com.xml
delete mode 100644 tests/__data__/expected/guides/fr/sky.com.xml.gz
create mode 100644 tests/__data__/input/sites/epg-grab/epg-grab.channels.xml
create mode 100644 tests/__data__/input/sites/epg-grab/epg-grab.config.js
diff --git a/tests/__data__/expected/guides/da/allente.se.xml b/tests/__data__/expected/guides/da/allente.se.xml
deleted file mode 100644
index 40e099ac..00000000
--- a/tests/__data__/expected/guides/da/allente.se.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-6'erenhttps://allente.se
-Diners, Drive-Ins and DivesUnderholdningseries23.5.0/1S24E06
-
\ No newline at end of file
diff --git a/tests/__data__/expected/guides/da/allente.se.xml.gz b/tests/__data__/expected/guides/da/allente.se.xml.gz
deleted file mode 100644
index fe964bfa63dab1f4fe64d2c1e55681ee6c931a8f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 452
zcmV;#0XzO5iwFP!000006K#@FZ`&Xc$KNOIJ0PU(Wiw#rIPHcVY04(;ZBp0g2$_>Z
zYXjnl*X+{|wxms~@_;!0cPH-mM{OSFi7XJ&de_mK2}-~X-dHzw^!C^H>WY$0uhK${
zPS8;)q^yM$w14|X4SVezOvIXwwh+NFb5DC^EQU!RE2n4Z+xI$n{8CiKpDD@?-VuyL
zNB1cO{LJ|wOkNxI+uqw5jMdD?k(Vfxh!1|Ay+hvew&CqNxh`FIQq(IJ+(>z^4sq(w
z&Ga;ZOTZ8mFZYU{-dmm?q93E4XCRn#Opk*#q7iwK4`ruW^x;yIt0(Q$?b+zbrU}TT
z3q7N0zqKy2{YbXaE>Qh&NVGF#n*&t*UvkC;I9!z6IsPa6xIy~|I=O1aL)|o@*aE?#H&D65Oz?;a=8oo%mzJGF
u+RIOD#RRVvzsP&ND7!yI07v^9*?bf2ixU25Yw?(;rT+_$9H*q=0ssJ{Gv#am
diff --git a/tests/__data__/expected/guides/en/directv.com.xml b/tests/__data__/expected/guides/en/directv.com.xml
deleted file mode 100644
index 2321284a..00000000
--- a/tests/__data__/expected/guides/en/directv.com.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-Bravo Easthttps://directv.com
-
\ No newline at end of file
diff --git a/tests/__data__/expected/guides/en/directv.com.xml.gz b/tests/__data__/expected/guides/en/directv.com.xml.gz
deleted file mode 100644
index 8e41c0678ead3a0f57d6afcd6bd8a524ea67c787..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 200
zcmV;(05|_1iwFP!000006IISjN(31E`awK9uJk49wF!AE$W&dwWCf
z%%y~^k~i?&c+?k`t}g1f7EM|RI!
diff --git a/tests/__data__/expected/guides/en/example.com.xml b/tests/__data__/expected/guides/en/example.com.xml
new file mode 100644
index 00000000..0f94474c
--- /dev/null
+++ b/tests/__data__/expected/guides/en/example.com.xml
@@ -0,0 +1,4 @@
+
+Channel 1https://example.com
+Program1
+
\ No newline at end of file
diff --git a/tests/__data__/expected/guides/en/sky.com.xml b/tests/__data__/expected/guides/en/sky.com.xml
deleted file mode 100644
index 1eeac223..00000000
--- a/tests/__data__/expected/guides/en/sky.com.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-BBC Newshttps://sky.com
-BBC News at OneThe latest national and international news from the BBC. [S,SL]
-
\ No newline at end of file
diff --git a/tests/__data__/expected/guides/en/sky.com.xml.gz b/tests/__data__/expected/guides/en/sky.com.xml.gz
deleted file mode 100644
index c3f1f279c8c741a25937fd54480ba4bd02bfe2a4..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 377
zcmV-<0fzn`iwFP!000006J3!(Yuqpph3|py*ty6X|D!KE{zN$6)Nn-X(pfqUp*WAXUKzdv}d-5UHOza
zCh(LpVj6*b56&kJr;0B@+b~a%vOh;l_;LUC{>#ryEa$x@l?m`N`SSU9I%?eWi8ZRC;~2)tl{Rt!qYA
XH%;M>C$xn#rbG7^Z`vxII|2XzEoQvk
diff --git a/tests/__data__/expected/guides/en/virginmedia.com.xml b/tests/__data__/expected/guides/en/virginmedia.com.xml
deleted file mode 100644
index 667c2f07..00000000
--- a/tests/__data__/expected/guides/en/virginmedia.com.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-BBC Newshttps://virginmedia.com
-BBC News at OneThe latest national and international news, followed by weather.News96839999.145799123.0/1S96840000E145799124
-
\ No newline at end of file
diff --git a/tests/__data__/expected/guides/en/virginmedia.com.xml.gz b/tests/__data__/expected/guides/en/virginmedia.com.xml.gz
deleted file mode 100644
index c41ccf960353939aeab81801ed1e97e94c23eb97..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 378
zcmV-=0fqh_iwFP!000006K#>fZWJ*LhVMvy2P@aIlbPv4cTpylia>}1Akm(yFk@z;
zCeA4F&ayl`3GJ?i3LkRtZ-23WtD9fm!HhB4K%Ho+S^!cX21{cn?(aUXHUe(6;u!|R
z*on4o+oo=7p)X#kerJf#fgL(=d;9(i9#XY`6j}{7P0k!wWIXDuK#`REC#`HB2vY1j
zv16XnJ1K2t{kV@+AH0m;et+6*K35ZsLTa^-PM^wV8%IkX2Wv{Hl0{VVd73iV6vG&e
z_Xvqis2149E?VvOeuWzcK*8Jr6T9N@t=$
z6b4+;-a|SjM&F5iW1b%<3B7&0x!UHan)RFO?KZDm)v{4?(e-~spwve!AAZk_b@AxK
YiLrjsFVFUuTS%VuAK6+uY-a)h0ARtfzyJUM
diff --git a/tests/__data__/expected/guides/fr/example.com.xml b/tests/__data__/expected/guides/fr/example.com.xml
new file mode 100644
index 00000000..b9653f35
--- /dev/null
+++ b/tests/__data__/expected/guides/fr/example.com.xml
@@ -0,0 +1,4 @@
+
+Channel 1https://example.com
+Program1
+
\ No newline at end of file
diff --git a/tests/__data__/expected/guides/fr/sky.com.xml b/tests/__data__/expected/guides/fr/sky.com.xml
deleted file mode 100644
index d04dc456..00000000
--- a/tests/__data__/expected/guides/fr/sky.com.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-BBC Newshttps://sky.com
-CNNhttps://sky.com
-BBC News at OneLes dernières nouvelles nationales et internationales de la BBC. [S,SL]
-French title
-
\ No newline at end of file
diff --git a/tests/__data__/expected/guides/fr/sky.com.xml.gz b/tests/__data__/expected/guides/fr/sky.com.xml.gz
deleted file mode 100644
index ededb1dd6cb1c3c90c14c7bd283f8861a388c3af..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 452
zcmV;#0XzO5iwFP!000006RnfMirX*{hVO;GgV43L#&(lfTVyZn!cxkT7PdW=9<=hr
z5s_sh$xgRV)c4pIs~i$Hn@cIw2Q&Qhqxt=5EUtgFhK%UE?rcdjmQsRNb+xulNxy!%
zOE@Lhl?WrLWx$f=X`W|kp3>^|E1|a1S~Nu0CB3=1UE|)fVMi-bYu_9Blvvqf6+2{V
z33wq3tvXA*QzhMo(EIlQn(4L~98+Bj?(@$NoPT7!Z75V?aHcxh{O)P82$)0x#}t==
zZr5uz_{%U+{dV?n-gS+WZHvSQ
z>B7vl$nrEkTp
zI;)?5xmen67}1!ik|Az}oJtHt+Yn8Eq
+
+
+ Channel 1
+ 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
new file mode 100644
index 00000000..493907db
--- /dev/null
+++ b/tests/__data__/input/sites/epg-grab/epg-grab.config.js
@@ -0,0 +1,16 @@
+module.exports = {
+ site: 'example.com',
+ days: 2,
+ url() {
+ return `https://example.com`
+ },
+ parser() {
+ return [
+ {
+ title: 'Program1',
+ start: '2022-03-06T04:30:00.000Z',
+ stop: '2022-03-06T07:10:00.000Z'
+ }
+ ]
+ }
+}