MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / makeLicense

Function makeLicense

packages/shared/src/entitlements.test.ts:52–84  ·  view source on GitHub ↗
(overrides: Partial<License> = {})

Source from the content-addressed store, hash-verified

50 });
51
52const makeLicense = (overrides: Partial<License> = {}): License => ({
53 id: 'lic_1',
54 orgId: 1,
55 activationCode: 'code',
56 entitlements: [],
57 seats: null,
58 status: null,
59 planName: null,
60 unitAmount: null,
61 currency: null,
62 interval: null,
63 intervalCount: null,
64 nextRenewalAt: null,
65 nextRenewalAmount: null,
66 cancelAt: null,
67 trialEnd: null,
68 hasPaymentMethod: null,
69 yearlyTermStartedAt: null,
70 yearlyTermEndsAt: null,
71 yearlyTotalQuartersInTerm: null,
72 yearlyCurrentQuarterNumber: null,
73 yearlyCurrentQuarterStartedAt: null,
74 yearlyCurrentQuarterEndsAt: null,
75 yearlyCommittedSeats: null,
76 yearlyOverageSeats: null,
77 yearlyBillableOverageSeats: null,
78 yearlyPeakSeats: null,
79 lastSyncAt: new Date(),
80 lastSyncErrorCode: null,
81 createdAt: new Date(),
82 updatedAt: new Date(),
83 ...overrides,
84});
85
86beforeEach(() => {
87 mocks.env.SOURCEBOT_EE_LICENSE_KEY = undefined;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected