mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-16 12:00:04 -04:00
wip
This commit is contained in:
parent
109deb476d
commit
bad3eddf9d
25 changed files with 453 additions and 447 deletions
|
@ -18,23 +18,35 @@ beforeEach(() => {
|
|||
console.log(stdout)
|
||||
})
|
||||
|
||||
fit.each([
|
||||
'.gh-pages/categories/general.m3u',
|
||||
'.gh-pages/categories/legislative.m3u',
|
||||
'.gh-pages/categories/news.m3u',
|
||||
'.gh-pages/categories/other.m3u',
|
||||
'logs/generators/categories.log'
|
||||
])('can generate %s', filepath => {
|
||||
expect(content(`output/${filepath}`)).toBe(content(`expected/${filepath}`))
|
||||
})
|
||||
it('can generate playlists', () => {
|
||||
const files = [
|
||||
'.gh-pages/categories/general.m3u',
|
||||
'.gh-pages/categories/legislative.m3u',
|
||||
'.gh-pages/categories/news.m3u',
|
||||
'.gh-pages/categories/undefined.m3u',
|
||||
'logs/generators/categories.log',
|
||||
'.gh-pages/countries/ru.m3u',
|
||||
'.gh-pages/countries/uk.m3u',
|
||||
'.gh-pages/countries/undefined.m3u',
|
||||
'logs/generators/countries.log',
|
||||
'.gh-pages/languages/cat.m3u',
|
||||
'.gh-pages/languages/eng.m3u',
|
||||
'.gh-pages/languages/nld.m3u',
|
||||
'.gh-pages/languages/rus.m3u',
|
||||
'.gh-pages/languages/undefined.m3u',
|
||||
'logs/generators/languages.log',
|
||||
'.gh-pages/regions/asia.m3u',
|
||||
'.gh-pages/regions/cis.m3u',
|
||||
'.gh-pages/regions/emea.m3u',
|
||||
'.gh-pages/regions/eur.m3u',
|
||||
'.gh-pages/regions/int.m3u',
|
||||
'.gh-pages/regions/undefined.m3u',
|
||||
'logs/generators/regions.log'
|
||||
]
|
||||
|
||||
it.each([
|
||||
'.gh-pages/countries/ru.m3u',
|
||||
'.gh-pages/countries/uk.m3u',
|
||||
'.gh-pages/countries/undefined.m3u',
|
||||
'logs/generators/countries.log'
|
||||
])('can generate %s', filepath => {
|
||||
expect(content(`output/${filepath}`)).toBe(content(`expected/${filepath}`))
|
||||
files.forEach(filepath => {
|
||||
expect(content(`output/${filepath}`)).toBe(content(`expected/${filepath}`))
|
||||
})
|
||||
})
|
||||
|
||||
function content(filepath) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue