Update tests

This commit is contained in:
freearhey
2023-10-15 09:27:41 +03:00
parent 0c0cc2af93
commit f3ba9fbcfe
4 changed files with 27 additions and 35 deletions

View File

@@ -8,13 +8,9 @@ type ExecError = {
describe('channels:lint', () => {
it('will show a message if the file contains a syntax error', () => {
try {
const stdout = execSync(
'npm run channels:lint -- --channels=tests/__data__/input/channels-lint/channels-lint.channels.xml',
{
encoding: 'utf8'
}
)
console.log(stdout)
const cmd =
'npm run channels:lint -- --channels=tests/__data__/input/channels-lint/channels-lint.channels.xml'
execSync(cmd, { encoding: 'utf8' })
process.exit(1)
} catch (error) {
expect((error as ExecError).status).toBe(1)