From bb64439add5ce8f43bc214294b3c60c63ba82394 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 2f61c345dd2..8918cb02e99 100644 --- a/test/commands/validate.test.ts +++ b/test/commands/validate.test.ts @@ -86,7 +86,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(); }); @@ -118,7 +118,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(); });