mirror of
https://github.com/iptv-org/iptv
synced 2025-12-17 19:07:37 -05:00
wip
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user