Skip to content

Commit e5ec43d

Browse files
committed
update asyncapi_websocket_query path
1 parent 75c7904 commit e5ec43d

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

packages/components/test/__fixtures__/asyncapi-v3.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ info:
33
title: Account Service
44
version: 1.0.0
55
description: This service is in charge of processing user signups
6+
servers:
7+
production:
8+
host: api.example.com
9+
protocol: ws
10+
description: Production WebSocket server
611
channels:
712
userSignedup:
813
address: user/signedup

packages/components/test/components/Overview.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { getServer, getServerUrl } from '@asyncapi/generator-helpers';
55
import { Overview } from '../../src/components/readme/Overview';
66

77
const parser = new Parser();
8-
const asyncapi_websocket_query = path.resolve(__dirname, '../../../helpers/test/__fixtures__/asyncapi-websocket-query.yml');
8+
const asyncapi_websocket_query = path.resolve(__dirname, '../__fixtures__/asyncapi-v3.yml');
99

1010
describe('Testing of Overview component', () => {
1111
let parsedAsyncAPIDocument;
@@ -20,7 +20,7 @@ describe('Testing of Overview component', () => {
2020
info = parsedAsyncAPIDocument.info();
2121
title = info.title();
2222

23-
const server = getServer(parsedAsyncAPIDocument.servers(), 'withHostDuplicatingProtocol');
23+
const server = getServer(parsedAsyncAPIDocument.servers(), 'production');
2424
serverUrl = getServerUrl(server);
2525
});
2626

packages/components/test/components/__snapshots__/Overview.test.js.snap

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
exports[`Testing of Overview component render overview component when serverUrl is missing 1`] = `
44
"## Overview
55
6-
Market data is a public API that streams all the market data on a given symbol.
7-
6+
This service is in charge of processing user signups
87
98
- **Version:** 1.0.0
109
- **Server URL:** undefined"
@@ -13,19 +12,17 @@ Market data is a public API that streams all the market data on a given symbol.
1312
exports[`Testing of Overview component render overview component when title is missing 1`] = `
1413
"## Overview
1514
16-
Market data is a public API that streams all the market data on a given symbol.
17-
15+
This service is in charge of processing user signups
1816
1917
- **Version:** 1.0.0
20-
- **Server URL:** wss://api.gemini.com"
18+
- **Server URL:** ws://api.example.com"
2119
`;
2220

2321
exports[`Testing of Overview component render overview component with all parameters 1`] = `
2422
"## Overview
2523
26-
Market data is a public API that streams all the market data on a given symbol.
27-
24+
This service is in charge of processing user signups
2825
2926
- **Version:** 1.0.0
30-
- **Server URL:** wss://api.gemini.com"
27+
- **Server URL:** ws://api.example.com"
3128
`;

0 commit comments

Comments
 (0)