Update validate.test.ts

This commit is contained in:
freearhey 2025-03-25 07:18:40 +03:00
parent ce17e9cc68
commit 4d06d5d63d

View file

@ -64,6 +64,10 @@ describe('db:validate', () => {
expect((error as ExecError).stdout).toContain( expect((error as ExecError).stdout).toContain(
'"002RadioTV.do" has an invalid replaced_by "002RadioTV.do@4K"' '"002RadioTV.do" has an invalid replaced_by "002RadioTV.do@4K"'
) )
expect((error as ExecError).stdout).toContain(
'"10Channel.do" channel does not have a main feed'
)
expect((error as ExecError).stdout).toContain('"24B.do" channel does not have a main feed')
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'
) )
@ -78,7 +82,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('8 error(s)') expect((error as ExecError).stdout).toContain('10 error(s)')
} }
}) })