Initial Commit
This commit is contained in:
7
tests/__data__/input/sites/duplicate.channels.xml
Normal file
7
tests/__data__/input/sites/duplicate.channels.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site site="duplicate.com">
|
||||
<channels>
|
||||
<channel lang="en" xmltv_id="CNNInternationalEurope.us" site_id="150">CNN International</channel>
|
||||
<channel lang="en" xmltv_id="CNNInternationalEurope.us" site_id="140">CNN International</channel>
|
||||
</channels>
|
||||
</site>
|
||||
10
tests/__data__/input/sites/example.com.config.js
Normal file
10
tests/__data__/input/sites/example.com.config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports = {
|
||||
site: 'example.com',
|
||||
days: 2,
|
||||
url() {
|
||||
return `https://example.com`
|
||||
},
|
||||
parser() {
|
||||
return []
|
||||
}
|
||||
}
|
||||
7
tests/__data__/input/sites/example.com_en.channels.xml
Normal file
7
tests/__data__/input/sites/example.com_en.channels.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site site="example.com">
|
||||
<channels>
|
||||
<channel lang="en" xmltv_id="CNNInternationalEurope.us" site_id="140">CNN International</channel>
|
||||
<channel lang="en" xmltv_id="CNNInternationalEurope2.us" site_id="141">CNN International Europe 2</channel>
|
||||
</channels>
|
||||
</site>
|
||||
6
tests/__data__/input/sites/example.com_ru.channels.xml
Normal file
6
tests/__data__/input/sites/example.com_ru.channels.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site site="example.com">
|
||||
<channels>
|
||||
<channel lang="ru" xmltv_id="CNNInternationalEurope.us" site_id="140">CNN International</channel>
|
||||
</channels>
|
||||
</site>
|
||||
6
tests/__data__/input/sites/ignore.com.channels.xml
Normal file
6
tests/__data__/input/sites/ignore.com.channels.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site site="ignore.com">
|
||||
<channels>
|
||||
<channel lang="en" xmltv_id="1Plus2.lv" site_id="1341">1+2</channel>
|
||||
</channels>
|
||||
</site>
|
||||
10
tests/__data__/input/sites/ignore.com.config.js
Normal file
10
tests/__data__/input/sites/ignore.com.config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports = {
|
||||
site: 'ignore.com',
|
||||
ignore: true,
|
||||
url() {
|
||||
return `https://ignore.com`
|
||||
},
|
||||
parser() {
|
||||
return []
|
||||
}
|
||||
}
|
||||
6
tests/__data__/input/sites/lint.channels.xml
Normal file
6
tests/__data__/input/sites/lint.channels.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site site="lint.com">
|
||||
<channels>
|
||||
<channel xmltv_id="CNNInternationalEurope.us" site_id="140">CNN International</channel>
|
||||
</channels>
|
||||
</site>
|
||||
19
tests/__data__/input/sites/parse-channels.config.js
Normal file
19
tests/__data__/input/sites/parse-channels.config.js
Normal file
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
site: 'parse-channels.com',
|
||||
url() {
|
||||
return `https://parse-channels.com`
|
||||
},
|
||||
parser() {
|
||||
return []
|
||||
},
|
||||
channels() {
|
||||
return [
|
||||
{
|
||||
lang: 'en',
|
||||
xmltv_id: 'CNNInternational.us',
|
||||
site_id: 140,
|
||||
name: 'CNN International'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
6
tests/__data__/input/sites/wrong_xmltv_id.channels.xml
Normal file
6
tests/__data__/input/sites/wrong_xmltv_id.channels.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site site="wrong_xmltv_id.com">
|
||||
<channels>
|
||||
<channel lang="en" xmltv_id="CNNInternational" site_id="140">CNN International</channel>
|
||||
</channels>
|
||||
</site>
|
||||
Reference in New Issue
Block a user