From 86eda24dccdefb51102513ade649d6d013b3e580 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Thu, 27 Feb 2025 20:55:23 +0300 Subject: [PATCH] Update tests --- tests/commands/playlist/update.test.ts | 2 +- tests/commands/report/create.test.ts | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/commands/playlist/update.test.ts b/tests/commands/playlist/update.test.ts index 10f73b156..525b88587 100644 --- a/tests/commands/playlist/update.test.ts +++ b/tests/commands/playlist/update.test.ts @@ -26,7 +26,7 @@ it('can format playlists', () => { }) expect(stdout).toBe( - 'OUTPUT=closes #14151, closes #14140, closes #14110, closes #14120, closes #14178\n' + 'OUTPUT=closes #14151, closes #14140, closes #14110, closes #14120, closes #14175, closes #14174, closes #14173, closes #14172, closes #14171, closes #14170, closes #14169, closes #14164, closes #14162, closes #14160, closes #14159, closes #14158, closes #14155, closes #14153, closes #14152, closes #14105, closes #14104, closes #14057, closes #14034, closes #13964, closes #13893, closes #13881, closes #13793, closes #13751, closes #13715\n' ) }) diff --git a/tests/commands/report/create.test.ts b/tests/commands/report/create.test.ts index d34e82a40..cfb8861e2 100644 --- a/tests/commands/report/create.test.ts +++ b/tests/commands/report/create.test.ts @@ -10,17 +10,17 @@ it('can create report', () => { expect( stdout.includes(` -┌─────────┬─────────────┬─────────────────┬─────────────────────┬────────────────┐ -│ (index) │ issueNumber │ type │ channelId │ status │ -├─────────┼─────────────┼─────────────────┼─────────────────────┼────────────────┤ -│ 0 │ 14110 │ 'streams:edit' │ 'BBCAmericaEast.us' │ 'invalid_link' │ -│ 1 │ 14120 │ 'streams:edit' │ 'boo.us' │ 'invalid_id' │ -│ 2 │ 14140 │ 'broken stream' │ undefined │ 'invalid_link' │ -│ 3 │ 14175 │ 'streams:add' │ 'TFX.fr' │ 'invalid_id' │ -│ 4 │ 14176 │ 'streams:add' │ 'ManoramaNews.in' │ 'duplicate' │ -│ 5 │ 14177 │ 'streams:add' │ 'TUTV.us' │ 'fullfilled' │ -│ 6 │ 14178 │ 'streams:add' │ 'TV3.my' │ 'blocked' │ -│ 7 │ 14179 │ 'streams:add' │ 'ManoramaNews.in' │ 'pending' │ -└─────────┴─────────────┴─────────────────┴─────────────────────┴────────────────┘`) +┌─────────┬─────────────┬──────────────────┬────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────┐ +│ (index) │ issueNumber │ type │ channelId │ streamUrl │ status │ +├─────────┼─────────────┼──────────────────┼────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────┤ +│ 0 │ 14120 │ 'streams:edit' │ 'boo.us' │ 'https://livestream.telvue.com/templeuni1/f7b44cfafd5c52223d5498196c8a2e7b.sdp/playlist.m3u8' │ 'invalid_id' │ +│ 1 │ 14135 │ 'streams:add' │ 'BBCWorldNewsSouthAsia.uk' │ 'http://103.199.161.254/Content/bbcworld/Live/Channel%28BBCworld%29/Stream%2801%29/index.m3u8' │ 'wrong_id' │ +│ 2 │ 14140 │ 'streams:add' │ undefined │ undefined │ 'missing_id' │ +│ 3 │ 14175 │ 'streams:add' │ 'TFX.fr' │ 'http://livetv.ktv.zone/13/play.m3u8' │ 'duplicate' │ +│ 4 │ 14177 │ 'streams:add' │ 'TUTV.us' │ 'https://livestream.telvue.com/templeuni1/f7b44cfafd5c52223d5498196c8a2e7b.sdp/playlist.m3u8' │ 'on_playlist' │ +│ 5 │ 14178 │ 'streams:add' │ 'TV3.my' │ 'https://live-streams-ssai-01.tonton.com.my/live/2dd2b7cd-1b34-4871-b669-57b5c9beca23/live.isml/.m3u8' │ 'blocked' │ +│ 6 │ 16120 │ 'broken stream' │ undefined │ 'http://190.61.102.67:2000/play/a038/index.m3u8' │ 'wrong_link' │ +│ 7 │ 19956 │ 'channel search' │ 'CNBCe.tr' │ undefined │ 'invalid_id' │ +└─────────┴─────────────┴──────────────────┴────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────┘`) ).toBe(true) })