Skip to content

Commit

Permalink
Updated assertion styles as per PR feedback as part of asyncapi#1323
Browse files Browse the repository at this point in the history
  • Loading branch information
francocm committed Apr 26, 2024
1 parent b432838 commit 03ce3a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/bundle/bundle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('bundle', () => {
])
.it('should be able to bundle multiple specs along with custom reference', (ctx, done) => {
expect(ctx.stdout).to.contain('Check out your shiny new bundled files at test/integration/bundle/final.yaml\n');
expect(validateGeneratedSpec('test/integration/bundle/final.yaml', spec)).to.be.true;
expect(validateGeneratedSpec('test/integration/bundle/final.yaml', spec)).to.equal(true);
fileCleanup('./test/integration/bundle/final.yaml');
done();
});
Expand All @@ -80,7 +80,7 @@ describe('bundle', () => {
])
.it('should be able to bundle correctly with overwriting base file', (ctx, done) => {
expect(ctx.stdout).to.contain('Check out your shiny new bundled files at test/integration/bundle/final.yaml\n');
expect(validateGeneratedSpec('test/integration/bundle/final-asyncapi.yaml', spec)).to.be.true;
expect(validateGeneratedSpec('test/integration/bundle/final-asyncapi.yaml', spec)).to.equal(true);
fileCleanup('./test/integration/bundle/final.yaml');
done();
});
Expand All @@ -94,7 +94,7 @@ describe('bundle spec v3', () => {
'--output=test/integration/bundle/final.yaml',
]).it('should be able to bundle v3 spec correctly', (ctx, done) => {
expect(ctx.stdout).to.contain('Check out your shiny new bundled files at test/integration/bundle/final.yaml\n');
expect(validateGeneratedSpec('test/integration/bundle/final.yaml', specv3)).to.be.true
expect(validateGeneratedSpec('test/integration/bundle/final.yaml', specv3)).to.equal(true);
fileCleanup('./test/integration/bundle/final.yaml');
done();
});
Expand Down

0 comments on commit 03ce3a6

Please sign in to comment.