Skip to content

Commit

Permalink
Corrected bin command
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim committed Apr 3, 2021
1 parent 7d98d99 commit 0dcaed4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion test/yaml-rename/options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
verbose: true
output: output.yaml
no-sort: true
rename: OpenAPI Petstore - OpenAPI 3.0
rename: Streetlights - AsyncAPI 2.0
2 changes: 1 addition & 1 deletion test/yaml-rename/output.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0dcaed4

Please sign in to comment.