mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
20 lines
534 B
TypeScript
20 lines
534 B
TypeScript
import nock from 'nock';
|
|
|
|
import { getWorkflowFilenames, testWorkflows } from '@test/nodes/Helpers';
|
|
|
|
import { currentWeatherResponse } from './apiResponses';
|
|
|
|
describe('OpenWeatherMap', () => {
|
|
describe('Run OpenWeatherMap workflow', () => {
|
|
beforeAll(() => {
|
|
nock('https://api.openweathermap.org')
|
|
.get('/data/2.5/weather')
|
|
.query({ units: 'metric', q: 'berlin,de', lang: 'en' })
|
|
.reply(200, currentWeatherResponse);
|
|
});
|
|
|
|
const workflows = getWorkflowFilenames(__dirname);
|
|
testWorkflows(workflows);
|
|
});
|
|
});
|