2023-07-07 17:55:11 +02:00
|
|
|
const actual = jest.requireActual("@budibase/pro")
|
|
|
|
const pro = {
|
|
|
|
...actual,
|
|
|
|
licensing: {
|
|
|
|
keys: {
|
|
|
|
activateLicenseKey: jest.fn(),
|
|
|
|
getLicenseKey: jest.fn(),
|
|
|
|
deleteLicenseKey: jest.fn(),
|
|
|
|
},
|
|
|
|
offline: {
|
|
|
|
activateOfflineLicense: jest.fn(),
|
|
|
|
getOfflineLicenseToken: jest.fn(),
|
|
|
|
deleteOfflineLicenseToken: jest.fn(),
|
2023-07-08 14:07:10 +02:00
|
|
|
getIdentifierBase64: jest.fn()
|
2023-07-07 17:55:11 +02:00
|
|
|
},
|
|
|
|
cache: {
|
|
|
|
...actual.licensing.cache,
|
|
|
|
refresh: jest.fn(),
|
|
|
|
}
|
|
|
|
},
|
|
|
|
quotas: {
|
|
|
|
...actual.quotas,
|
|
|
|
getQuotaUsage: jest.fn()
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export = pro
|