Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: integrate v2 ParserJS in validate command #376

Merged
merged 5 commits into from
Jan 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix windows tests
  • Loading branch information
magicmatatjahu committed Jan 26, 2023
commit bb64439add5ce8f43bc214294b3c60c63ba82394
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