diff --git a/tests/store.test.js b/tests/store.test.js index 852daa4e8..a0510646f 100644 --- a/tests/store.test.js +++ b/tests/store.test.js @@ -313,6 +313,16 @@ describe('search', () => { id: 'LaLiganaZap.ao' }) }) + + it('can find channel by stream url', () => { + search('https://stmv6.voxtvhd.com.br/xtremacartoons/xtremacartoons/playlist.m3u8') + + const results = get(filteredChannels) + expect(results.length).toBe(1) + expect(results[0]).toMatchObject({ + id: 'XtremaCartoons.ar' + }) + }) }) function mockFetch() {