mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Rename ActiveWebhooks to LiveWebhooks (no-changelog) (#10355)
This commit is contained in:
@@ -3,7 +3,7 @@ import { agent as testAgent } from 'supertest';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
|
||||
import { AbstractServer } from '@/AbstractServer';
|
||||
import { ActiveWebhooks } from '@/webhooks/ActiveWebhooks';
|
||||
import { LiveWebhooks } from '@/webhooks/LiveWebhooks';
|
||||
import { ExternalHooks } from '@/ExternalHooks';
|
||||
import { TestWebhooks } from '@/webhooks/TestWebhooks';
|
||||
import { WaitingWebhooks } from '@/webhooks/WaitingWebhooks';
|
||||
@@ -21,7 +21,7 @@ describe('WebhookServer', () => {
|
||||
|
||||
describe('CORS', () => {
|
||||
const corsOrigin = 'https://example.com';
|
||||
const activeWebhooks = mockInstance(ActiveWebhooks);
|
||||
const liveWebhooks = mockInstance(LiveWebhooks);
|
||||
const testWebhooks = mockInstance(TestWebhooks);
|
||||
mockInstance(WaitingWebhooks);
|
||||
mockInstance(WaitingForms);
|
||||
@@ -35,7 +35,7 @@ describe('WebhookServer', () => {
|
||||
});
|
||||
|
||||
const tests = [
|
||||
['webhook', activeWebhooks],
|
||||
['webhook', liveWebhooks],
|
||||
['webhookTest', testWebhooks],
|
||||
// TODO: enable webhookWaiting & waitingForms after CORS support is added
|
||||
// ['webhookWaiting', waitingWebhooks],
|
||||
|
||||
Reference in New Issue
Block a user