Files
prowler/ui/lib/feature-flags/shared.test.ts
T

20 lines
545 B
TypeScript

import { describe, expect, it } from "vitest";
import { FEATURE_FLAG } from "./shared";
describe("FEATURE_FLAG", () => {
it("should map each flag to the key PostHog knows it by", () => {
expect(FEATURE_FLAG).toEqual({
SKILL_LAUNCHER: "finding-detail-skill-launcher",
ISSUES: "issues-feature",
BILLING_SYSTEM_METRONOME: "BILLING_SYSTEM_METRONOME",
});
});
it("should not contain duplicate keys", () => {
const keys = Object.values(FEATURE_FLAG);
expect(new Set(keys).size).toBe(keys.length);
});
});