Skip to content

Commit

Permalink
fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu committed Oct 18, 2022
1 parent aa5fcab commit 52fd3ee
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 @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down

0 comments on commit 52fd3ee

Please sign in to comment.