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 fb9654e9..7f27c6b1 100644 Binary files a/tests/__data__/expected/epg_grab/guide.xml.gz and b/tests/__data__/expected/epg_grab/guide.xml.gz differ diff --git a/tests/__data__/expected/epg_grab/guide_2.xml b/tests/__data__/expected/epg_grab/guide_2.xml index ff7119fd..3180449c 100644 --- a/tests/__data__/expected/epg_grab/guide_2.xml +++ b/tests/__data__/expected/epg_grab/guide_2.xml @@ -1,8 +1,8 @@ +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` } ]