mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
Release v3.8.41 — 52 commits since v3.8.40 (19 CHANGELOG bullets, 11 contributors). All gating CI green: Unit×8, Coverage×8, Vitest, Package Artifact, Quality Ratchet, CodeQL, Lint, Docs Sync (Strict), Node 24/26 compat, E2E×9, Integration, Electron smoke. Advisory checks overridden (main unprotected): PR Test Policy = test-masking heuristic on the cumulative 52-commit assert delta (legitimate dead-code-sweep removals + consolidations, reviewed per-PR); SonarCloud/SonarQube = new-code maintainability/coverage quality gate (CodeQL/Semgrep/Security/npm-audit/Dependabot all clean — not a security finding).
14 lines
583 B
TypeScript
14 lines
583 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
|
|
const webhookEvents = await import("../../src/lib/webhooks/eventDescriptions.ts");
|
|
|
|
test("webhook event descriptions expose event metadata without the unused payload builder", () => {
|
|
const descriptions = webhookEvents.EVENT_DESCRIPTIONS;
|
|
|
|
assert.ok(descriptions["request.completed"]);
|
|
assert.equal(descriptions["request.completed"].label, "Request Completed");
|
|
assert.equal(descriptions["test.ping"].exampleData.webhookId, "preview");
|
|
assert.equal("buildExamplePayload" in webhookEvents, false);
|
|
});
|