diff --git a/test/fixtures/specification-v3.yml b/test/fixtures/specification-v3.yml index 93cdabbb181..b636d86d731 100644 --- a/test/fixtures/specification-v3.yml +++ b/test/fixtures/specification-v3.yml @@ -43,11 +43,6 @@ servers: 'read:pets': read your pets scopes: - 'write:pets' - - type: openIdConnect - openIdConnectUrl: openIdConnectUrl - scopes: - - 'some:scope:1' - - 'some:scope:2' production: host: 'api.streetlights.smartylighting.com:{port}' pathname: /some/path @@ -102,8 +97,6 @@ channels: subscribe.message.2: payload: type: object - subscribe.message.3: - $ref: 'https://example.com/message' servers: - $ref: '#/servers/default' - $ref: '#/servers/production' @@ -154,7 +147,6 @@ operations: #/channels/smartylighting~1streetlights~11~10~1action~1{streetlightId}~1turn~1on/messages/customMessageId - $ref: >- #/channels/smartylighting~1streetlights~11~10~1action~1{streetlightId}~1turn~1on/messages/subscribe.message.2 - - $ref: 'https://example.com/message' turnOnOff: action: send channel: @@ -242,9 +234,6 @@ components: availableScopes: 'write:pets': modify pets in your account 'read:pets': read your pets - openIdConnect: - type: openIdConnect - openIdConnectUrl: openIdConnectUrl unusedFlows: type: oauth2 flows: diff --git a/test/integration/generate/fromTemplate.test.ts b/test/integration/generate/fromTemplate.test.ts index c7243a7b424..d3cfa8bc65e 100644 --- a/test/integration/generate/fromTemplate.test.ts +++ b/test/integration/generate/fromTemplate.test.ts @@ -23,7 +23,7 @@ describe('template', () => { test .stdout() .command([...generalOptions, '--output=./test/docs/1', '--force-write']) - .it('should generate minimal tempalte', (ctx, done) => { + .it('should generate minimal template', (ctx, done) => { expect(ctx.stdout).to.contain( 'Check out your shiny new generated files at ./test/docs/1.\n\n' ); @@ -31,51 +31,6 @@ describe('template', () => { done(); }); - describe('should handle AsyncAPI v3 document correctly', () => { - test - .stderr() - .stdout() - .command([ - 'generate:fromTemplate', - asyncapiv3, - '@asyncapi/minimaltemplate']) - .it('give error', (ctx, done) => { - expect(ctx.stderr).to.equal('Error: @asyncapi/minimaltemplate template does not support AsyncAPI v3 documents, please checkout some link\n'); - expect(ctx.stdout).to.equal(''); - done(); - }); - }); - - test - .stderr() - .stdout() - .command([ - 'generate:fromTemplate', - asyncapiv3, - '@asyncapi/markdown-template', '--output=./test/docs/v3/markdown-template', '--force-write']) - .it('should be able to use AsyncAPI v3 with markdown', (ctx, done) => { - expect(ctx.stdout).to.contain( - 'Check out your shiny new generated files at ./test/docs/v3/markdown-template.\n\n' - ); - cleanup('./test/docs/v3/markdown-template'); - done(); - }); - - test - .stderr() - .stdout() - .command([ - 'generate:fromTemplate', - asyncapiv3, - '@asyncapi/html-template', '--output=./test/docs/v3/html-template', '--force-write']) - .it('should be able to use AsyncAPI v3 with markdown', (ctx, done) => { - expect(ctx.stdout).to.contain( - 'Check out your shiny new generated files at ./test/docs/v3/html-template.\n\n' - ); - cleanup('./test/docs/v3/html-template'); - done(); - }); - describe('git clash', () => { const pathToOutput = './test/docs/2'; before(() => {