2023-07-07 17:55:11 +02:00
|
|
|
const actual = jest.requireActual("@budibase/pro")
|
|
|
|
const pro = {
|
|
|
|
...actual,
|
2023-07-25 14:18:56 +02:00
|
|
|
features: {
|
|
|
|
...actual.features,
|
|
|
|
isSSOEnforced: jest.fn()
|
|
|
|
},
|
2023-07-07 17:55:11 +02:00
|
|
|
licensing: {
|
|
|
|
keys: {
|
|
|
|
activateLicenseKey: jest.fn(),
|
|
|
|
getLicenseKey: jest.fn(),
|
|
|
|
deleteLicenseKey: jest.fn(),
|
|
|
|
},
|
|
|
|
offline: {
|
2023-07-14 21:56:50 +02:00
|
|
|
activateOfflineLicenseToken: jest.fn(),
|
2023-07-07 17:55:11 +02:00
|
|
|
getOfflineLicenseToken: jest.fn(),
|
|
|
|
deleteOfflineLicenseToken: jest.fn(),
|
2023-07-14 17:55:48 +02:00
|
|
|
getIdentifierBase64: jest.fn(),
|
2023-07-07 17:55:11 +02:00
|
|
|
},
|
|
|
|
cache: {
|
|
|
|
...actual.licensing.cache,
|
|
|
|
refresh: jest.fn(),
|
2023-07-14 17:55:48 +02:00
|
|
|
},
|
2023-07-07 17:55:11 +02:00
|
|
|
},
|
|
|
|
quotas: {
|
|
|
|
...actual.quotas,
|
2023-07-14 17:55:48 +02:00
|
|
|
getQuotaUsage: jest.fn(),
|
2023-07-07 17:55:11 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export = pro
|