refactor: Overhaul nodes-testing setup - Part 2 (no-changelog) (#14873)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-04-24 17:37:26 +02:00
committed by GitHub
parent 897338bd24
commit 91069f057e
119 changed files with 556 additions and 1002 deletions

View File

@@ -3,8 +3,14 @@ import nock from 'nock';
import { testWorkflows } from '@test/nodes/Helpers';
describe('Test DiscordV2, webhook => sendLegacy', () => {
nock('https://discord.com')
.post('/webhook?wait=true')
const credentials = {
discordWebhookApi: {
webhookUri: 'https://discord.com/webhook',
},
};
nock(credentials.discordWebhookApi.webhookUri)
.post('?wait=true')
.reply(200, {
id: '1168768986385747999',
type: 0,
@@ -45,5 +51,5 @@ describe('Test DiscordV2, webhook => sendLegacy', () => {
});
const workflows = ['nodes/Discord/test/v2/node/webhook/sendLegacy.workflow.json'];
testWorkflows(workflows);
testWorkflows(workflows, credentials);
});