mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
style: apply Biome formatting to enterprise files
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user