refactor(core): Rename ActiveWebhooks to LiveWebhooks (no-changelog) (#10355)

This commit is contained in:
Tomi Turtiainen
2024-08-13 09:49:24 +03:00
committed by GitHub
parent 9b647a9837
commit cdd0ab4031
3 changed files with 11 additions and 11 deletions

View File

@@ -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],