mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
18 lines
483 B
TypeScript
18 lines
483 B
TypeScript
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
|
import nock from 'nock';
|
|
|
|
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);
|
|
});
|
|
|
|
new NodeTestHarness().setupTests();
|
|
});
|
|
});
|