mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-23 02:45:21 -05:00
74dd778630
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
14 lines
590 B
TypeScript
14 lines
590 B
TypeScript
import { describe, expect, test } from "vitest";
|
|
import { ZGatewayAuthService, getGatewayAuthServiceTokenPurpose } from "./service";
|
|
|
|
describe("gateway auth service registry", () => {
|
|
test("returns the configured token purpose for feedbackRecords", () => {
|
|
expect(getGatewayAuthServiceTokenPurpose("feedbackRecords")).toBe("feedback_records_gateway");
|
|
});
|
|
|
|
test("validates supported gateway auth services", () => {
|
|
expect(ZGatewayAuthService.parse("feedbackRecords")).toBe("feedbackRecords");
|
|
expect(() => ZGatewayAuthService.parse("unknownService")).toThrow();
|
|
});
|
|
});
|