Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/apps/web/app/modules/telephony/routes/telephonyRoutePaths.test.ts
T

25 lines
921 B
TypeScript

import { describe, expect, it } from "vitest";
import {
AIRCALL_OAUTH_CALLBACK_PATH,
AIRCALL_OAUTH_INSTALL_PATH,
AIRCALL_WEBHOOK_PATH,
telephonyCallDetailPath,
telephonyCallsPath,
telephonySettingsPath,
} from "./telephonyRoutePaths";
describe("telephony route paths", () => {
it("keeps tenant calls and settings routes aligned with navigation", () => {
expect(telephonyCallsPath("acme")).toBe("/acme/calls");
expect(telephonyCallDetailPath("acme", "call-1")).toBe("/acme/calls/call-1");
expect(telephonySettingsPath("acme")).toBe("/acme/settings/integrations/telephony");
});
it("keeps the provider endpoints tenant-neutral", () => {
expect(AIRCALL_OAUTH_INSTALL_PATH).toBe("/integrations/aircall/oauth/install");
expect(AIRCALL_OAUTH_CALLBACK_PATH).toBe("/integrations/aircall/oauth/callback");
expect(AIRCALL_WEBHOOK_PATH).toBe("/v1/webhooks/telephony/aircall");
});
});