mirror of
https://github.com/iptv-org/database.git
synced 2024-11-22 10:54:11 -05:00
Update validate.test.ts
This commit is contained in:
parent
7d7bba55ec
commit
7d796a3efd
1 changed files with 7 additions and 3 deletions
|
@ -79,8 +79,12 @@ describe('db:validate', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('does not show an error if all data are correct', () => {
|
it('does not show an error if all data are correct', () => {
|
||||||
|
try {
|
||||||
execSync('DATA_DIR=tests/__data__/input/validate/valid_data npm run db:validate', {
|
execSync('DATA_DIR=tests/__data__/input/validate/valid_data npm run db:validate', {
|
||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
})
|
})
|
||||||
|
} catch (error) {
|
||||||
|
console.log((error as ExecError).stdout)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue