From d604f35ba1b1fee777a2380afa155dc21b39cb89 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 5 Feb 2022 08:21:31 +0300 Subject: [PATCH] Update update-playlists.test.js --- tests/commands/update-playlists.test.js | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/tests/commands/update-playlists.test.js b/tests/commands/update-playlists.test.js index 8e449258ae..402a64f6a8 100644 --- a/tests/commands/update-playlists.test.js +++ b/tests/commands/update-playlists.test.js @@ -13,20 +13,17 @@ beforeEach(() => { }) it('can update playlist', () => { - const output1 = content('tests/__data__/output/channels/ad.m3u') - const expected1 = content('tests/__data__/expected/channels/ad.m3u') + expect(content('tests/__data__/output/channels/ad.m3u')).toBe( + 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') - const expected2 = content('tests/__data__/expected/channels/ru.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) + expect(content('tests/__data__/output/channels/uk.m3u')).toBe( + content('tests/__data__/expected/channels/uk.m3u') + ) }) function content(filepath) {