Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ npm run test:example
```
We added jest snapshots to cover the integration tests, and you can run:
```bash
npm test
npm test:snapshot
```

We setup unit tests and use jest as the runner, and you use the command:
```bash
npm test:unit
```

For local development, you need different variations of this command. First of all, you need to know about three important CLI flags:
Expand Down
4 changes: 3 additions & 1 deletion components/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ export function getServiceClientName(asyncapi) {

// Function to generate service client description
export function getServiceClientDescription(asyncapi) {
return `${asyncapi.info().description()}`;
const hasDesc = asyncapi.info().hasDescription();
const description = hasDesc ? `${asyncapi.info().description()}` : '';
return description;
};

// Function to import client service
Expand Down
Loading