From 0dcaed46d45ee67362897395b5303a7baf831aba Mon Sep 17 00:00:00 2001 From: Tim <> Date: Sat, 3 Apr 2021 11:10:19 +0200 Subject: [PATCH] Corrected bin command --- package.json | 4 ++-- test/test.js | 4 ++-- test/yaml-rename/options.yaml | 2 +- test/yaml-rename/output.yaml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index bd6039a..5f8e9b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asyncapi-format", - "version": "1.0.0", + "version": "1.0.1", "description": "Format a AsyncAPI document by ordering and filtering fields.", "keywords": [ "asyncapi", @@ -23,7 +23,7 @@ "author": "Tim Haselaars", "main": "bin/cli.js", "bin": { - "openapi-format": "bin/cli.js" + "asyncapi-format": "bin/cli.js" }, "directories": { "test": "test" diff --git a/test/test.js b/test/test.js index 205cae3..6ea3ebf 100644 --- a/test/test.js +++ b/test/test.js @@ -15,7 +15,7 @@ const tests = fs.readdirSync(__dirname).filter(file => { // const tests = ['yaml-no-sort'] // console.log('tests',tests); -describe('openapi-format tests', () => { +describe('asyncapi-format tests', () => { tests.forEach((test) => { describe(test, () => { it('should match expected output', (done) => { @@ -121,7 +121,7 @@ describe('openapi-format tests', () => { result = asyncapiFormat.asyncapiFilter(result, options); } - // Rename title OpenAPI document + // Rename title AsyncAPI document if (options.rename) { result = asyncapiFormat.asyncapiRename(result, options); } diff --git a/test/yaml-rename/options.yaml b/test/yaml-rename/options.yaml index 488f61e..56f36a8 100644 --- a/test/yaml-rename/options.yaml +++ b/test/yaml-rename/options.yaml @@ -1,4 +1,4 @@ verbose: true output: output.yaml no-sort: true -rename: OpenAPI Petstore - OpenAPI 3.0 +rename: Streetlights - AsyncAPI 2.0 diff --git a/test/yaml-rename/output.yaml b/test/yaml-rename/output.yaml index 893ba53..fd146d1 100644 --- a/test/yaml-rename/output.yaml +++ b/test/yaml-rename/output.yaml @@ -1,6 +1,6 @@ asyncapi: 2.0.0 info: - title: OpenAPI Petstore - OpenAPI 3.0 + title: Streetlights - AsyncAPI 2.0 version: 1.0.0 description: > The Smartylighting Streetlights API allows you to remotely manage the city