mirror of
https://github.com/iptv-org/iptv.git
synced 2026-11-20 07:10:15 +02:00
fix: link the exact stream in discussion:validate fulfilled comments
The fulfilled comment looked for the first line containing the stream ID as a substring, so a request for MTV.fr@SD linked the line of BFMTV.fr@SD. Match the quoted tvg-id attribute instead.
This commit is contained in:
@@ -28,7 +28,9 @@ describe('discussion:validate', () => {
|
||||
const result = readResultJson()
|
||||
expect(result.status).toBe('fulfilled')
|
||||
expect(result.label).toBe('check:failed')
|
||||
expect(result.comment).toContain('https://github.com/test-owner/test-repo/blob/main/')
|
||||
expect(result.comment).toContain(
|
||||
'https://github.com/test-owner/test-repo/blob/main/streams/br.m3u#L4-L5'
|
||||
)
|
||||
expect(result.close).toBe('true')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user