From 52fd3ee8c7763d07a174e2c331b1b5a09ca3933c Mon Sep 17 00:00:00 2001 From: Matatjahu Date: Tue, 18 Oct 2022 15:58:09 +0200 Subject: [PATCH] fix windows tests --- test/commands/validate.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); });