Update update-playlists.test.js

This commit is contained in:
Aleksandr Statciuk 2022-02-05 08:21:31 +03:00
parent 1c925c407a
commit d604f35ba1
1 changed files with 9 additions and 12 deletions

View File

@ -13,20 +13,17 @@ beforeEach(() => {
}) })
it('can update playlist', () => { it('can update playlist', () => {
const output1 = content('tests/__data__/output/channels/ad.m3u') expect(content('tests/__data__/output/channels/ad.m3u')).toBe(
const expected1 = content('tests/__data__/expected/channels/ad.m3u') content('tests/__data__/expected/channels/ad.m3u')
)
expect(output1).toBe(expected1) expect(content('tests/__data__/output/channels/ru.m3u')).toBe(
content('tests/__data__/expected/channels/ru.m3u')
)
const output2 = content('tests/__data__/output/channels/ru.m3u') expect(content('tests/__data__/output/channels/uk.m3u')).toBe(
const expected2 = content('tests/__data__/expected/channels/ru.m3u') content('tests/__data__/expected/channels/uk.m3u')
)
expect(output2).toBe(expected2)
const output3 = content('tests/__data__/output/channels/uk.m3u')
const expected3 = content('tests/__data__/expected/channels/uk.m3u')
expect(output3).toBe(expected3)
}) })
function content(filepath) { function content(filepath) {