diff --git a/test/commands/validate.test.ts b/test/commands/validate.test.ts index 6ecefac2314..4c33d158019 100644 --- a/test/commands/validate.test.ts +++ b/test/commands/validate.test.ts @@ -74,7 +74,7 @@ describe('validate', () => { .command(['validate', 'code']) .it('validates if context name exists', (ctx, done) => { const fileName = path.resolve(__dirname, '../specification.yml'); - expect(ctx.stdout).toMatch(`File ${fileName} and/or referenced documents have governance issues.\n\n\n${fileName}`); + expect(ctx.stdout).toMatch(`File ${fileName} and/or referenced documents have governance issues.`); expect(ctx.stderr).toEqual(''); done(); }); @@ -106,7 +106,7 @@ describe('validate', () => { .command(['validate']) .it('validates from current context', (ctx, done) => { const fileName = path.resolve(__dirname, '../specification.yml'); - expect(ctx.stdout).toMatch(`File ${fileName} and/or referenced documents have governance issues.\n\n\n${fileName}`); + expect(ctx.stdout).toMatch(`File ${fileName} and/or referenced documents have governance issues.`); expect(ctx.stderr).toEqual(''); done(); });