mirror of
https://github.com/iptv-org/database.git
synced 2025-05-10 03:30:01 -04:00
Update tests
This commit is contained in:
parent
cf8a5df8f4
commit
c96d052d91
1 changed files with 4 additions and 1 deletions
|
@ -61,6 +61,9 @@ describe('db:validate', () => {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
expect((error as ExecError).status).toBe(1)
|
expect((error as ExecError).status).toBe(1)
|
||||||
expect((error as ExecError).stdout).toContain('"aaa.us" is missing in the channels.csv')
|
expect((error as ExecError).stdout).toContain('"aaa.us" is missing in the channels.csv')
|
||||||
|
expect((error as ExecError).stdout).toContain(
|
||||||
|
'"002RadioTV.do" has an invalid replaced_by "002RadioTV.do@4K"'
|
||||||
|
)
|
||||||
expect((error as ExecError).stdout).toContain(
|
expect((error as ExecError).stdout).toContain(
|
||||||
'002RadioTV.do: "website" must be a valid uri with a scheme matching the http|https pattern'
|
'002RadioTV.do: "website" must be a valid uri with a scheme matching the http|https pattern'
|
||||||
)
|
)
|
||||||
|
@ -75,7 +78,7 @@ describe('db:validate', () => {
|
||||||
expect((error as ExecError).stdout).toContain(
|
expect((error as ExecError).stdout).toContain(
|
||||||
'SD: "video_format" with value "576I" fails to match the required pattern'
|
'SD: "video_format" with value "576I" fails to match the required pattern'
|
||||||
)
|
)
|
||||||
expect((error as ExecError).stdout).toContain('7 error(s)')
|
expect((error as ExecError).stdout).toContain('8 error(s)')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue