| 50 | }); |
| 51 | |
| 52 | const 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 | |
| 86 | beforeEach(() => { |
| 87 | mocks.env.SOURCEBOT_EE_LICENSE_KEY = undefined; |