mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(n8n Form Trigger Node): Improvements (#7571)
Github issue / Community forum post (link here to close automatically): --------- Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in> Co-authored-by: Giulio Andreini <andreini@netseven.it>
This commit is contained in:
@@ -9,6 +9,7 @@ import { ExternalHooks } from '@/ExternalHooks';
|
||||
import { InternalHooks } from '@/InternalHooks';
|
||||
import { TestWebhooks } from '@/TestWebhooks';
|
||||
import { WaitingWebhooks } from '@/WaitingWebhooks';
|
||||
import { WaitingForms } from '@/WaitingForms';
|
||||
import type { IResponseCallbackData } from '@/Interfaces';
|
||||
|
||||
import { mockInstance } from '../shared/mocking';
|
||||
@@ -24,6 +25,7 @@ describe('WebhookServer', () => {
|
||||
const activeWorkflowRunner = mockInstance(ActiveWorkflowRunner);
|
||||
const testWebhooks = mockInstance(TestWebhooks);
|
||||
mockInstance(WaitingWebhooks);
|
||||
mockInstance(WaitingForms);
|
||||
|
||||
beforeAll(async () => {
|
||||
const server = new (class extends AbstractServer {
|
||||
@@ -36,8 +38,9 @@ describe('WebhookServer', () => {
|
||||
const tests = [
|
||||
['webhook', activeWorkflowRunner],
|
||||
['webhookTest', testWebhooks],
|
||||
// TODO: enable webhookWaiting after CORS support is added
|
||||
// TODO: enable webhookWaiting & waitingForms after CORS support is added
|
||||
// ['webhookWaiting', waitingWebhooks],
|
||||
// ['formWaiting', waitingForms],
|
||||
] as const;
|
||||
|
||||
for (const [key, manager] of tests) {
|
||||
|
||||
Reference in New Issue
Block a user