Skip to content

Commit 7b89286

Browse files
authored
feat: update supported generator versions #408 (#410)
1 parent 12e5cca commit 7b89286

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"description": "Custom location of the AsyncAPI file that you provided as an input in generation. By default it is located in the root of the output directory"
8787
}
8888
},
89-
"generator": ">=0.50.0 <2.0.0",
89+
"generator": ">=0.50.0 <3.0.0",
9090
"filters": [
9191
"@asyncapi/generator-filters"
9292
],

test/integration.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const fetch = require('node-fetch');
55
const console = require('console');
66

77
const MAIN_TEST_RESULT_PATH = path.join('test', 'temp', ' integrationTestResult');
8-
const URL = 'https://raw.githubusercontent.com/asyncapi/generator/master/test/docs/ws.yml';
8+
const URL = 'https://raw.githubusercontent.com/asyncapi/generator/master/apps/generator/test/docs/ws.yml';
99

1010
describe('template integration test using generator', () => {
1111
const generateFolderName = () => {
@@ -17,6 +17,8 @@ describe('template integration test using generator', () => {
1717
it('should generate application files ', async () => {
1818
const outputDir = generateFolderName();
1919
const asyncapiFile = await fetch(URL);
20+
if (!asyncapiFile.ok) throw new Error('Failed to fetch the AsyncAPI file');
21+
2022
const params = {
2123
server: 'localhost'
2224
};

0 commit comments

Comments
 (0)