Fixes wrong line number in logs

This commit is contained in:
freearhey 2023-10-11 18:16:24 +03:00
parent 1ea89eded0
commit ae2231547d
6 changed files with 24 additions and 18 deletions

View file

@ -68,8 +68,13 @@ describe('db:validate', () => {
process.exit(1)
} 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('1 error(s)')
expect((error as ExecError).stdout).toContain(
'2 "aaa.us" is missing in the channels.csv'
)
expect((error as ExecError).stdout).toContain(
'2 002RadioTV.do: "website" must be a valid uri with a scheme matching the http|https pattern'
)
expect((error as ExecError).stdout).toContain('2 error(s)')
}
})