From bc7f8105d2c0128153910fb5d81d66ebfa806d75 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Fri, 2 May 2025 06:17:04 +0300 Subject: [PATCH] Update tests/__data__ --- .../expected/db/update/data/feeds.csv | 2 + tests/__data__/input/db/update/data/feeds.csv | 3 +- tests/__data__/input/db/update/issues.js | 79 +++++++++++++++++++ 3 files changed, 83 insertions(+), 1 deletion(-) diff --git a/tests/__data__/expected/db/update/data/feeds.csv b/tests/__data__/expected/db/update/data/feeds.csv index 0b2bbd9e..7e523c21 100644 --- a/tests/__data__/expected/db/update/data/feeds.csv +++ b/tests/__data__/expected/db/update/data/feeds.csv @@ -6,6 +6,8 @@ beINMoviesTurk.tr,SD,SD,TRUE,c/DO,America/Santo_Domingo,spa,480i Channel82.bm,SD,SD,FALSE,c/BM,Atlantic/Bermuda,eng,480i M5.hu,HD,HD,TRUE,c/BR,Africa/Dakar;Africa/El_Aaiun,por;spa,1080i M5.hu,West,West,FALSE,c/DO,America/Santo_Domingo,spa,480i +TrueCrime.uk,Plus1,+1,FALSE,c/UK,Europe/London,eng,576i +TrueCrime.uk,SD,SD,TRUE,c/UK;c/IE,Europe/London,eng,576i WenzhouEconomicandEducation.cn,SD,SD,TRUE,c/CN,Africa/Johannesburg;Africa/Kigali,zho,576i YiwuBusinessChannel.cn,SD,SD,TRUE,c/CN,Africa/Johannesburg;Africa/Kigali,zho,576i YiwuNewsIntegratedChannel.cn,SD,SD,TRUE,c/CN,Africa/Johannesburg;Africa/Kigali,zho,576i \ No newline at end of file diff --git a/tests/__data__/input/db/update/data/feeds.csv b/tests/__data__/input/db/update/data/feeds.csv index 26e8166a..61f835e1 100644 --- a/tests/__data__/input/db/update/data/feeds.csv +++ b/tests/__data__/input/db/update/data/feeds.csv @@ -6,4 +6,5 @@ channel,id,name,is_main,broadcast_area,timezones,languages,video_format BeijingSatelliteTV.cn,SD,SD,TRUE,c/DO,America/Santo_Domingo,spa,480i M5.hu,SD,SD,FALSE,c/DO,America/Santo_Domingo,spa,480i M5.hu,West,West,TRUE,c/DO,America/Santo_Domingo,spa,480i -Channel82.bm,SD,SD,FALSE,c/BM,America/Santo_Domingo,eng,480i \ No newline at end of file +Channel82.bm,SD,SD,FALSE,c/BM,America/Santo_Domingo,eng,480i +TrueCrime.uk,SD,SD,TRUE,c/UK;c/IE,Europe/London,eng,576i \ No newline at end of file diff --git a/tests/__data__/input/db/update/issues.js b/tests/__data__/input/db/update/issues.js index ce14e3e0..2f835350 100644 --- a/tests/__data__/input/db/update/issues.js +++ b/tests/__data__/input/db/update/issues.js @@ -1108,5 +1108,84 @@ module.exports = [ timeline_url: 'https://api.github.com/repos/iptv-org/database/issues/17612/timeline', performed_via_github_app: null, state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/database/issues/9900', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/9900/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/9900/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/9900/events', + html_url: 'https://github.com/iptv-org/database/issues/9900', + id: 2129321999, + node_id: 'I_kwDOG1Kwp85y_x4L', + number: 9900, + title: 'Add: Yiwu News Integrated Channel', + user: { + login: 'AntiPontifex', + id: 81566772, + node_id: 'MDQ6VXNlcjgxNTY2Nzcy', + avatar_url: 'https://avatars.githubusercontent.com/u/81566772?v=4', + gravatar_id: '', + url: 'https://api.github.com/users/AntiPontifex', + html_url: 'https://github.com/AntiPontifex', + followers_url: 'https://api.github.com/users/AntiPontifex/followers', + following_url: 'https://api.github.com/users/AntiPontifex/following{/other_user}', + gists_url: 'https://api.github.com/users/AntiPontifex/gists{/gist_id}', + starred_url: 'https://api.github.com/users/AntiPontifex/starred{/owner}{/repo}', + subscriptions_url: 'https://api.github.com/users/AntiPontifex/subscriptions', + organizations_url: 'https://api.github.com/users/AntiPontifex/orgs', + repos_url: 'https://api.github.com/users/AntiPontifex/repos', + events_url: 'https://api.github.com/users/AntiPontifex/events{/privacy}', + received_events_url: 'https://api.github.com/users/AntiPontifex/received_events', + type: 'User', + site_admin: false + }, + labels: [ + { + id: 5303575699, + node_id: 'LA_kwDOG1Kwp88AAAABPB4kkw', + url: 'https://api.github.com/repos/iptv-org/database/labels/channels:add', + name: 'feeds:add', + color: '017ff8', + default: false, + description: 'Request to add a channel into the database' + }, + { + id: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T02:10:41Z', + updated_at: '2023-10-06T02:52:02Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel ID\n\nTrueCrime.uk\n\n### Feed Name\n\n+1\n\n### Main Feed\n\nFALSE\n\n### Broadcast Area\n\nc/UK\n\n### Languages\n\neng\n\n### Timezones\n\nEurope/London\n\n### Format\n\n576i\n\n### Notes\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/9900/reactions', + total_count: 0, + '+1': 0, + '-1': 0, + laugh: 0, + hooray: 0, + confused: 0, + heart: 0, + rocket: 0, + eyes: 0 + }, + timeline_url: 'https://api.github.com/repos/iptv-org/database/issues/9900/timeline', + performed_via_github_app: null, + state_reason: null } ]