From 3982e9af33aaeb7ee932875e4898b97af7690821 Mon Sep 17 00:00:00 2001 From: aayushRedHat Date: Tue, 9 Jan 2024 13:48:14 +0530 Subject: [PATCH] fix testing and removed unused files --- lib/asyncapi.yml | 37 ------------------------- test/test-project/test-registry.test.js | 5 ++-- 2 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 lib/asyncapi.yml diff --git a/lib/asyncapi.yml b/lib/asyncapi.yml deleted file mode 100644 index f8ff8df2e..000000000 --- a/lib/asyncapi.yml +++ /dev/null @@ -1,37 +0,0 @@ -asyncapi: 2.5.0 -info: - title: Streetlights API Simplified - version: 1.0.0 - description: | - The Smartylighting Streetlights API allows you to remotely manage the city lights. - - This is a simplified version of the Streetlights API from other examples. This version is used in AsyncAPI documentation. - license: - name: Apache 2.0 - url: https://www.apache.org/licenses/LICENSE-2.0 -servers: - mosquitto: - url: mqtt://test.mosquitto.org - protocol: mqtt -channels: - light/measured: - publish: - summary: Inform about environmental lighting conditions for a particular streetlight. - operationId: onLightMeasured - message: - name: LightMeasured - payload: - type: object - properties: - id: - type: integer - minimum: 0 - description: Id of the streetlight. - lumens: - type: integer - minimum: 0 - description: Light intensity measured in lumens. - sentAt: - type: string - format: date-time - description: Date and time when the message was sent. \ No newline at end of file diff --git a/test/test-project/test-registry.test.js b/test/test-project/test-registry.test.js index a886fe50d..e7674b906 100644 --- a/test/test-project/test-registry.test.js +++ b/test/test-project/test-registry.test.js @@ -22,11 +22,10 @@ describe('Integration testing generateFromFile() to make sure the result of the it('generated using private registory', async () => { const outputDir = generateFolderName(); const generator = new Generator('@asyncapi/html-template', outputDir, - { forceWrite: true, templateParams: { singleFile: true }, - registry: {url: 'http://localhost:4873/', username: 'admin', password: 'nimbda'}}); + { forceWrite: true, templateParams: { singleFile: true }, + registry: {url: 'http://localhost:4873/', username: 'admin', password: 'nimbda'}}); await generator.generateFromFile(dummySpecPath); const file = await readFile(path.join(outputDir, 'index.html'), 'utf8'); expect(file).toMatchSnapshot(); }); - });