From c96d052d9184f42e445b1036ed59a3ba93bb6063 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Fri, 21 Mar 2025 02:53:10 +0300 Subject: [PATCH] Update tests --- tests/db/validate.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/db/validate.test.ts b/tests/db/validate.test.ts index ba4f2fb8..7453fc50 100644 --- a/tests/db/validate.test.ts +++ b/tests/db/validate.test.ts @@ -61,6 +61,9 @@ describe('db:validate', () => { } catch (error) { 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( + '"002RadioTV.do" has an invalid replaced_by "002RadioTV.do@4K"' + ) expect((error as ExecError).stdout).toContain( '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( '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)') } })