Skip to content

Commit

Permalink
fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu committed Jan 26, 2023
1 parent fd6fb20 commit bb64439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/commands/validate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down

0 comments on commit bb64439

Please sign in to comment.