mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Overhaul nodes-testing setup - Part 2 (no-changelog) (#14873)
This commit is contained in:
committed by
GitHub
parent
897338bd24
commit
91069f057e
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user