forked from baron/baron-sso
13 lines
469 B
TypeScript
13 lines
469 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { getSeedTenantSlugs, isSeedTenant } from "./protectedTenants";
|
|
|
|
describe("protectedTenants", () => {
|
|
it("marks tenants from seed-tenant.csv as protected", () => {
|
|
expect(getSeedTenantSlugs()).toEqual(
|
|
expect.arrayContaining(["hanmac-family", "personal"]),
|
|
);
|
|
expect(isSeedTenant({ slug: "hanmac-family" })).toBe(true);
|
|
expect(isSeedTenant({ slug: "normal-tenant" })).toBe(false);
|
|
});
|
|
});
|