From 404e73163bdecc2bf2f0297e7b31ae9fe17168ab Mon Sep 17 00:00:00 2001
From: freearhey <7253922+freearhey@users.noreply.github.com>
Date: Thu, 17 Jul 2025 17:40:10 +0300
Subject: [PATCH] Update tests/__data__
---
tests/__data__/expected/epg_grab/guide.xml | 12 ++++++------
tests/__data__/expected/epg_grab/guide.xml.gz | Bin 369 -> 380 bytes
tests/__data__/expected/epg_grab/guide_2.xml | 6 +++---
tests/__data__/expected/epg_grab/guide_3.xml | 10 +++++-----
tests/__data__/expected/epg_grab/guide_4.xml | 4 ++--
.../expected/epg_grab/guides/en/example.com.xml | 6 +++---
tests/__data__/input/__data__/feeds.json | 14 ++++++++++++++
.../input/channels_lint/valid.channels.xml | 2 +-
...annels.xml => wrong_channel_id.channels.xml} | 4 ++--
.../wrong_feed_id.channels.xml | 4 ++++
.../epg_grab/example.com/example.com.config.js | 2 +-
.../sites/example.com/example.com.channels.xml | 2 +-
.../sites/example.com/example.com.config.js | 2 +-
.../sites/example2.com/example2.com.config.js | 2 +-
14 files changed, 44 insertions(+), 26 deletions(-)
rename tests/__data__/input/channels_validate/{wrong_xmltv_id.channels.xml => wrong_channel_id.channels.xml} (52%)
create mode 100644 tests/__data__/input/channels_validate/wrong_feed_id.channels.xml
diff --git a/tests/__data__/expected/epg_grab/guide.xml b/tests/__data__/expected/epg_grab/guide.xml
index 66da48ee..fb7736c7 100644
--- a/tests/__data__/expected/epg_grab/guide.xml
+++ b/tests/__data__/expected/epg_grab/guide.xml
@@ -1,14 +1,14 @@
+Channel 2https://example.com36
Channel 1https://example.com
-Channel 1https://example2.com
-Channel 2https://example.com
Channel 3https://example2.com
Channel 4https://example2.com
-Program1 (example.com)
+Channel 1https://example2.com
Programme1 (example.com)
+Program1 (example.com)
Programme1 (example2.com)
-Program1 (example.com)
Programme1 (example.com)
-Program1 (example2.com)
-Program1 (example2.com)
+Program1 (example.com)
+Program1 (example2.com)
+Program1 (example2.com)
\ No newline at end of file
diff --git a/tests/__data__/expected/epg_grab/guide.xml.gz b/tests/__data__/expected/epg_grab/guide.xml.gz
index fb9654e9306fc35871da65ca5b7c84a1fd713b42..7f27c6b157240b29feb735bfeba6a6a12b26127c 100644
GIT binary patch
literal 380
zcmV-?0fYW{oW+w}OT#b}hVKRcLkI|ptodl&RMPB1@lFuYYYA=ag88UvHs`;$o!gj$
zc5|C}ljih2^nEz*DH~3W1{3KkB%e!wGW6p;Q<<}%@>vQ;A(YiMLMl?G
z82c!52ECg{dyDU*(iRYLHujn?+T>K2Qp=`|p+;ajvpnuI)I1rQgS9Y{4o0%h*loMP
zDeiEJH&0_+YA5pOL%k^@b0s3@3)EC)Q=uBeI9s7U>L;jwLI=`I`$93f=$IMZo<8ZI
zPqvuTFRb>Bq|K`IuJFPb392A`SnMyk!byxV2IuuruY46;xuOloiZ=h+I%-fsOQ1#b
zpS*g=9~MpooUZK28AG$q8f(e235*;JOxh*b-dM?>&x`IrMsa(Rwf28W&cIrd+yU&6
aN$$E}@s?P-TDTyxaP!MH!U
+Channel 2https://example.com36
Channel 1https://example.com
-Channel 2https://example.com
-Program1 (example.com)
Programme1 (example.com)
-Program1 (example.com)
+Program1 (example.com)
Programme1 (example.com)
+Program1 (example.com)
\ No newline at end of file
diff --git a/tests/__data__/expected/epg_grab/guide_3.xml b/tests/__data__/expected/epg_grab/guide_3.xml
index a57b3322..b51e1e1d 100644
--- a/tests/__data__/expected/epg_grab/guide_3.xml
+++ b/tests/__data__/expected/epg_grab/guide_3.xml
@@ -1,14 +1,14 @@
Custom Channel 1https://example.com
-Channel 1https://example2.com
Custom Channel 2https://example.com
Channel 3https://example2.com
Channel 4https://example2.com
-Program1 (example.com)
+Channel 1https://example2.com
Programme1 (example.com)
+Program1 (example.com)
Programme1 (example2.com)
-Program1 (example.com)
Programme1 (example.com)
-Program1 (example2.com)
-Program1 (example2.com)
+Program1 (example.com)
+Program1 (example2.com)
+Program1 (example2.com)
\ No newline at end of file
diff --git a/tests/__data__/expected/epg_grab/guide_4.xml b/tests/__data__/expected/epg_grab/guide_4.xml
index 5cc5fbaa..dc4b8238 100644
--- a/tests/__data__/expected/epg_grab/guide_4.xml
+++ b/tests/__data__/expected/epg_grab/guide_4.xml
@@ -3,6 +3,6 @@
Channel 3https://example.com
Programme1 (example.com)
Programme1 (example.com)
-Program1 (example.com)
-Program1 (example.com)
+Program1 (example.com)
+Program1 (example.com)
\ No newline at end of file
diff --git a/tests/__data__/expected/epg_grab/guides/en/example.com.xml b/tests/__data__/expected/epg_grab/guides/en/example.com.xml
index f3550b8c..c1270824 100644
--- a/tests/__data__/expected/epg_grab/guides/en/example.com.xml
+++ b/tests/__data__/expected/epg_grab/guides/en/example.com.xml
@@ -1,6 +1,6 @@
+Channel 2https://example.com36
Channel 1https://example.com
-Channel 2https://example.com
-Program1 (example.com)
-Program1 (example.com)
+Program1 (example.com)
+Program1 (example.com)
\ No newline at end of file
diff --git a/tests/__data__/input/__data__/feeds.json b/tests/__data__/input/__data__/feeds.json
index 2aacf6b7..9e82fa2b 100644
--- a/tests/__data__/input/__data__/feeds.json
+++ b/tests/__data__/input/__data__/feeds.json
@@ -26,5 +26,19 @@
],
"languages": [],
"video_format": "480i"
+ },
+ {
+ "channel": "Bravo.us",
+ "id": "East",
+ "name": "East",
+ "is_main": true,
+ "broadcast_area": [
+ "r/EUR"
+ ],
+ "timezones": [
+ "America/New_York"
+ ],
+ "languages": [],
+ "video_format": "480i"
}
]
\ No newline at end of file
diff --git a/tests/__data__/input/channels_lint/valid.channels.xml b/tests/__data__/input/channels_lint/valid.channels.xml
index 42a447bb..8a221693 100644
--- a/tests/__data__/input/channels_lint/valid.channels.xml
+++ b/tests/__data__/input/channels_lint/valid.channels.xml
@@ -1,4 +1,4 @@
- Bravo's
+ Bravo's
\ No newline at end of file
diff --git a/tests/__data__/input/channels_validate/wrong_xmltv_id.channels.xml b/tests/__data__/input/channels_validate/wrong_channel_id.channels.xml
similarity index 52%
rename from tests/__data__/input/channels_validate/wrong_xmltv_id.channels.xml
rename to tests/__data__/input/channels_validate/wrong_channel_id.channels.xml
index 2534dc6c..cdf398e8 100644
--- a/tests/__data__/input/channels_validate/wrong_xmltv_id.channels.xml
+++ b/tests/__data__/input/channels_validate/wrong_channel_id.channels.xml
@@ -1,6 +1,6 @@
CNN International
- Bravo
- Bravo
+ Bravo
+ Bravo
\ No newline at end of file
diff --git a/tests/__data__/input/channels_validate/wrong_feed_id.channels.xml b/tests/__data__/input/channels_validate/wrong_feed_id.channels.xml
new file mode 100644
index 00000000..2951eabd
--- /dev/null
+++ b/tests/__data__/input/channels_validate/wrong_feed_id.channels.xml
@@ -0,0 +1,4 @@
+
+
+ Bravo
+
\ No newline at end of file
diff --git a/tests/__data__/input/epg_grab/example.com/example.com.config.js b/tests/__data__/input/epg_grab/example.com/example.com.config.js
index 7f65c30c..52370045 100644
--- a/tests/__data__/input/epg_grab/example.com/example.com.config.js
+++ b/tests/__data__/input/epg_grab/example.com/example.com.config.js
@@ -20,7 +20,7 @@ module.exports = {
return [
{
title: 'Program1 (example.com)',
- start: `${date.format('YYYY-MM-DD')}T04:30:00.000Z`,
+ start: `${date.format('YYYY-MM-DD')}T04:31:00.000Z`,
stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z`
}
]
diff --git a/tests/__data__/input/epg_grab/sites/example.com/example.com.channels.xml b/tests/__data__/input/epg_grab/sites/example.com/example.com.channels.xml
index 1b037f02..cfd7a7bb 100644
--- a/tests/__data__/input/epg_grab/sites/example.com/example.com.channels.xml
+++ b/tests/__data__/input/epg_grab/sites/example.com/example.com.channels.xml
@@ -1,6 +1,6 @@
+ Channel 2
Channel 1
- Channel 2
Channel 1
\ No newline at end of file
diff --git a/tests/__data__/input/epg_grab/sites/example.com/example.com.config.js b/tests/__data__/input/epg_grab/sites/example.com/example.com.config.js
index 7f65c30c..52370045 100644
--- a/tests/__data__/input/epg_grab/sites/example.com/example.com.config.js
+++ b/tests/__data__/input/epg_grab/sites/example.com/example.com.config.js
@@ -20,7 +20,7 @@ module.exports = {
return [
{
title: 'Program1 (example.com)',
- start: `${date.format('YYYY-MM-DD')}T04:30:00.000Z`,
+ start: `${date.format('YYYY-MM-DD')}T04:31:00.000Z`,
stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z`
}
]
diff --git a/tests/__data__/input/epg_grab/sites/example2.com/example2.com.config.js b/tests/__data__/input/epg_grab/sites/example2.com/example2.com.config.js
index 8789ccdc..9e4f58d3 100644
--- a/tests/__data__/input/epg_grab/sites/example2.com/example2.com.config.js
+++ b/tests/__data__/input/epg_grab/sites/example2.com/example2.com.config.js
@@ -15,7 +15,7 @@ module.exports = {
return [
{
title: 'Program1 (example2.com)',
- start: `${date.format('YYYY-MM-DD')}T04:30:00.000Z`,
+ start: `${date.format('YYYY-MM-DD')}T04:31:00.000Z`,
stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z`
}
]