style: apply Biome formatting to enterprise files

This commit is contained in:
SnapOtter
2026-06-14 14:53:44 +08:00
parent 954cfb01a6
commit e7bef34918
23 changed files with 166 additions and 228 deletions
+3 -6
View File
@@ -1,18 +1,15 @@
import { vi } from "vitest";
import type { EnterpriseFeature } from "@snapotter/enterprise";
import { vi } from "vitest";
export function mockEnterpriseFeatures(features: EnterpriseFeature[]) {
vi.doMock("@snapotter/enterprise", () => ({
isFeatureEnabled: (feature: string) =>
features.includes(feature as EnterpriseFeature),
isFeatureEnabled: (feature: string) => features.includes(feature as EnterpriseFeature),
getActiveLicense: () => ({
org: "test-org",
plan: "enterprise" as const,
features,
seats: 100,
expiresAt: new Date(
Date.now() + 365 * 24 * 60 * 60 * 1000,
).toISOString(),
expiresAt: new Date(Date.now() + 365 * 24 * 60 * 60 * 1000).toISOString(),
issuedAt: new Date().toISOString(),
}),
initEnterprise: vi.fn(),