From 03ce3a6d25219a497d46469430bdeed9c5c8ae82 Mon Sep 17 00:00:00 2001 From: Franco Cassar Manghi Date: Fri, 26 Apr 2024 19:54:49 +0100 Subject: [PATCH] Updated assertion styles as per PR feedback as part of https://github.com/asyncapi/cli/issues/1323 --- test/integration/bundle/bundle.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/bundle/bundle.test.ts b/test/integration/bundle/bundle.test.ts index 4b32fa243a5..0a8f77b58c5 100644 --- a/test/integration/bundle/bundle.test.ts +++ b/test/integration/bundle/bundle.test.ts @@ -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(); }); @@ -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(); }); @@ -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(); });