From a5b8fa12ae1409021e50f11c19ee5aac136d08f5 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Wed, 1 Jan 2025 10:40:47 +0300 Subject: [PATCH 1/2] Update tests/__data__ --- tests/__data__/expected/_sites.md | 197 ------------------ .../sites-update/sites/iltalehti.fi/readme.md | 1 + .../sites/indihometv.com/readme.md | 1 + .../sites-update/sites/kan.org.il/readme.md | 1 + 4 files changed, 3 insertions(+), 197 deletions(-) create mode 100644 tests/__data__/input/sites-update/sites/iltalehti.fi/readme.md create mode 100644 tests/__data__/input/sites-update/sites/indihometv.com/readme.md create mode 100644 tests/__data__/input/sites-update/sites/kan.org.il/readme.md diff --git a/tests/__data__/expected/_sites.md b/tests/__data__/expected/_sites.md index ede49778..efdb8b33 100644 --- a/tests/__data__/expected/_sites.md +++ b/tests/__data__/expected/_sites.md @@ -6,205 +6,8 @@ SiteStatusNotes - 9tv.co.il🟢 - abc.net.au🟢 - allente.dk🟢 - allente.fi🟢 - allente.no🟢 - allente.se🟢 - andorradifusio.ad🟢 - anteltv.com.uy🟢 - arianaafgtv.com🟢 - arianatelevision.com🟢 - arirang.com🟢 - artonline.tv🟢 - awilime.com🟢 - bein.com🟢 - beinsports.com🟢 - berrymedia.co.kr🟢 - cablego.com.pe🟢 - cableplus.com.uy🟢 - canalplus-haiti.com🔴https://github.com/iptv-org/epg/issues/2237 - canalplus.com🟢 - cgates.lt🟢 - chada.ma🟢 - chaines-tv.orange.fr🟡https://github.com/iptv-org/epg/issues/2395 - clickthecity.com🟢 - comteco.com.bo🔴https://github.com/iptv-org/epg/issues/2239 - content.astro.com.my🟢 - cosmote.gr🟢 - cubmu.com🟢 - dens.tv🟢 - digiturk.com.tr🔴https://github.com/iptv-org/epg/issues/2304, https://github.com/iptv-org/epg/issues/2547 - directv.com🔴https://github.com/iptv-org/epg/issues/2284 - directv.com.ar🔴https://github.com/iptv-org/epg/issues/2339 - directv.com.uy🟢 - dishtv.in🔴https://github.com/iptv-org/epg/issues/2445 - dsmart.com.tr🟢 - dstv.com🟢 - elcinema.com🔴https://github.com/iptv-org/epg/issues/2541 - ena.skylifetv.co.kr🟢 - energeek.cl🟢 - entertainment.ie🟢 - firstmedia.com🟢 - flixed.io🟢 - foxsports.com.au🟢 - foxtel.com.au🟢 - frikanalen.no🟢 - gatotv.com🟢 - getafteritmedia.com🟢 - guida.tv🟢 - guidatv.sky.it🟢 - hd-plus.de🔴https://github.com/iptv-org/epg/issues/2173 - horizon.tv🟢 - hoy.tv🟢 - i.mjh.nz🟢 - i24news.tv🟢 iltalehti.fi🟡https://github.com/iptv-org/epg/issues/2396 indihometv.com🟢 - ionplustv.com🟢 - ipko.tv🟢 kan.org.il🔴https://github.com/iptv-org/epg/issues/2273 - knr.gl🟢 - kplus.vn🔴https://github.com/iptv-org/epg/issues/2240 - kvf.fo🟢 - m.tv.sms.cz🔴https://github.com/iptv-org/epg/issues/2241 - m.tving.com🟢 - magticom.ge🟢 - mako.co.il🟢 - maxtv.hrvatskitelekom.hr🔴https://github.com/iptv-org/epg/issues/2509 - maxtvgo.mk🟢 - mediagenie.co.kr🟢 - mediaklikk.hu🟢 - mediasetinfinity.mediaset.it🟢 - melita.com🟢 - meo.pt🟡https://github.com/iptv-org/epg/issues/2446 - meuguia.tv🟢 - mewatch.sg🟢 - mi.tv🟢 - mncvision.id🟢 - moji.id🟢 - mon-programme-tv.be🟢 - movistarplus.es🔴https://github.com/iptv-org/epg/issues/2498 - mtel.ba🟢 - mts.rs🟢 - mujtvprogram.cz🟢 - musor.tv🟢 - mysky.com.ph🟢 - mytelly.co.uk🟢 - mytvsuper.com🟢 - neo.io🟢 - nhkworldpremium.com🟢 - nhl.com🟢 - nostv.pt🟢 - novacyprus.com🟢 - novasports.gr🟢 - nowplayer.now.com🟢 - nuevosiglo.com.uy🟢 - nzxmltv.com🟢 - ontvtonight.com🟢 - osn.com🟢 - pbsguam.org🟢 - pickx.be🟢 - player.ee.co.uk🟢 - playtv.unifi.com.my🟢 - plex.tv🟢 - programacion-tv.elpais.com🟢 - programacion.tcc.com.uy🟢 - programetv.ro🟢 - programme-tv.net🟢 - programme-tv.vini.pf🟢 - programme.tvb.com🟢 - programtv.onet.pl🟢 - raiplay.it🟢 - reportv.com.ar🟢 - rev.bs🔴https://github.com/iptv-org/epg/issues/2255 - rotana.net🟢 - rtb.gov.bn🔴https://github.com/iptv-org/epg/issues/2257 - rthk.hk🟢 - rtmklik.rtm.gov.my🟢 - rtp.pt🟢 - ruv.is🟢 - s.mxtv.jp🟢 - sat.tv🟢 - shahid.mbc.net🟢 - siba.com.co🟢 - singtel.com🟢 - sjonvarp.is🟢 - sky.co.nz🟢 - sky.com🟡https://github.com/iptv-org/epg/issues/2516, https://github.com/iptv-org/epg/issues/2501 - sky.de🟢 - skylife.co.kr🟢 - skyperfectv.co.jp🟢 - snrt.ma🟢 - sporttv.pt🟢 - starhubtvplus.com🟢 - startimestv.com🟢 - streamingtvguides.com🟢 - superguidatv.it🟢 - taiwanplus.com🟢 - tapdmv.com🟢 - telenet.tv🟢 - teliatv.ee🟢 - telkussa.fi🟢 - telsu.fi🟢 - tivu.tv🟢 - toonamiaftermath.com🟢 - turksatkablo.com.tr🟢 - tv-programme.telecablesat.fr🟢 - tv.blue.ch🟢 - tv.cctv.com🟢 - tv.dir.bg🟢 - tv.lv🟢 - tv.magenta.at🟢 - tv.mail.ru🟢 - tv.movistar.com.pe🟢 - tv.nu🟢 - tv.post.lu🟢 - tv.trueid.net🟢 - tv.yandex.ru🟢 - tv.yettel.hu🔴https://github.com/iptv-org/epg/issues/2263 - tv24.co.uk🟢 - tv24.se🟢 - tv2go.t-2.net🟢 - tva.tv🔴https://github.com/iptv-org/epg/issues/2264 - tvarenasport.com🟢 - tvarenasport.hr🟢 - tvcesoir.fr🟢 - tvcubana.icrt.cu🟢 - tvgids.nl🟡https://github.com/iptv-org/epg/issues/2400 - tvguide.com🔴https://github.com/iptv-org/epg/issues/2542 - tvguide.myjcom.jp🟢 - tvhebdo.com🟢 - tvheute.at🟢 - tvim.tv🟢 - tvireland.ie🟢 - tvmi.mt🟢 - tvmusor.hu🟢 - tvpassport.com🟡https://github.com/iptv-org/epg/issues/2272 - tvplus.com.tr🟢 - tvprofil.com🟡https://github.com/iptv-org/epg/issues/2399 - tvtv.us🟡https://github.com/iptv-org/epg/issues/2176 - v3.myafn.dodmedia.osd.mil🟢 - vidio.com🟢 - virginmediatelevision.ie🟢 - virgintvgo.virginmedia.com🟢 - visionplus.id🟢 - vivacom.bg🔴https://github.com/iptv-org/epg/issues/2270 - vtm.be🟢 - walesi.com.fj🟢 - watch.sportsnet.ca🟢 - watchyour.tv🟢 - wavve.com🟢 - web.magentatv.de🟢 - webtv.delta.nl🟢 - winplay.co🟢 - worldfishingnetwork.com🟢 - www3.nhk.or.jp🟢 - xumo.tv🟢 - zap.co.ao🟢 - ziggogo.tv🟢 - znbc.co.zm🟢 - zuragt.mn🟢 diff --git a/tests/__data__/input/sites-update/sites/iltalehti.fi/readme.md b/tests/__data__/input/sites-update/sites/iltalehti.fi/readme.md new file mode 100644 index 00000000..144ed147 --- /dev/null +++ b/tests/__data__/input/sites-update/sites/iltalehti.fi/readme.md @@ -0,0 +1 @@ +# litalehti.fi diff --git a/tests/__data__/input/sites-update/sites/indihometv.com/readme.md b/tests/__data__/input/sites-update/sites/indihometv.com/readme.md new file mode 100644 index 00000000..83b8c5c1 --- /dev/null +++ b/tests/__data__/input/sites-update/sites/indihometv.com/readme.md @@ -0,0 +1 @@ +# indihometv.com diff --git a/tests/__data__/input/sites-update/sites/kan.org.il/readme.md b/tests/__data__/input/sites-update/sites/kan.org.il/readme.md new file mode 100644 index 00000000..8c5b49ea --- /dev/null +++ b/tests/__data__/input/sites-update/sites/kan.org.il/readme.md @@ -0,0 +1 @@ +# kan.org.il From a37973f10e79499951f6414299655edcfa91a8bc Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Wed, 1 Jan 2025 10:41:03 +0300 Subject: [PATCH 2/2] Update update.test.ts --- tests/commands/sites/update.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/commands/sites/update.test.ts b/tests/commands/sites/update.test.ts index e38414d3..40e18b77 100644 --- a/tests/commands/sites/update.test.ts +++ b/tests/commands/sites/update.test.ts @@ -16,9 +16,12 @@ beforeEach(() => { }) it('can update SITES.md', () => { - const stdout = execSync('DOT_SITES_DIR=tests/__data__/output/.sites npm run sites:update', { - encoding: 'utf8' - }) + execSync( + 'DOT_SITES_DIR=tests/__data__/output/.sites SITES_DIR=tests/__data__/input/sites-update/sites npm run sites:update', + { + encoding: 'utf8' + } + ) expect(content('tests/__data__/output/sites.md')).toEqual( content('tests/__data__/expected/_sites.md')