From 4eeabbb71885923d9c9ae2afc60df2fd7bb0a875 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Mon, 20 Jan 2025 14:08:53 +0000 Subject: [PATCH] chore: update test following updates to generator repository --- test/integration.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration.test.js b/test/integration.test.js index 15afe2280..79076794f 100644 --- a/test/integration.test.js +++ b/test/integration.test.js @@ -5,7 +5,7 @@ const fetch = require('node-fetch'); const console = require('console'); const MAIN_TEST_RESULT_PATH = path.join('test', 'temp', ' integrationTestResult'); -const URL = 'https://raw.githubusercontent.com/asyncapi/generator/master/test/docs/ws.yml'; +const URL = 'https://raw.githubusercontent.com/asyncapi/generator/master/apps/generator/test/docs/ws.yml'; describe('template integration test using generator', () => { const generateFolderName = () => { @@ -17,6 +17,8 @@ describe('template integration test using generator', () => { it('should generate application files ', async () => { const outputDir = generateFolderName(); const asyncapiFile = await fetch(URL); + if (!asyncapiFile.ok) throw new Error('Failed to fetch the AsyncAPI file'); + const params = { server: 'localhost' };