diff --git a/src/config.ts b/src/config.ts index e33cdc97..400c199a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -35,10 +35,15 @@ export const config = { MYRIAD_MENTAL_HEALTH_TIMELINE_ID: process.env.MENTAL_HEALTH_EXPERIENCE_ID ?? '', PINATA_JWT: process.env.PINATA_SECRET_KEY ?? '', - GA_ORDER_LINK: process.env.GA_ORDER_LINK ?? '', - LAB_ORDER_LINK: process.env.LAB_ORDER_LINK ?? '', - UNSTAKE_INTERVAL: process.env.UNSTAKE_INTERVAL ?? '', - UNSTAKE_TIMER: process.env.UNSTAKE_TIMER ?? '', + GA_ORDER_LINK: + process.env.GA_ORDER_LINK ?? + 'https://analyst.testnet.debio.network/order-details/', + LAB_ORDER_LINK: + process.env.LAB_ORDER_LINK ?? + ' https://lab.testnet.debio.network/lab/orders/', + UNSTAKE_INTERVAL: process.env.UNSTAKE_INTERVAL ?? '00:00:00:30', + UNSTAKE_TIMER: process.env.UNSTAKE_TIMER ?? '6:00:00:00', MENSTRUAL_SUBSCRIPTION_DURATION: - process.env.MENSTRUAL_SUBSCRIPTION_DURATION ?? '', + process.env.MENSTRUAL_SUBSCRIPTION_DURATION ?? + '{"Monthly": "30:00:00:00", "Quarterly": "90:00:00:00", "Yearly": "365:00:00:00"}', }; diff --git a/test/unit/schedulers/menstrual-subscription/menstrual-subscription.service.spec.ts b/test/unit/schedulers/menstrual-subscription/menstrual-subscription.service.spec.ts index 6869282c..ccf4767a 100644 --- a/test/unit/schedulers/menstrual-subscription/menstrual-subscription.service.spec.ts +++ b/test/unit/schedulers/menstrual-subscription/menstrual-subscription.service.spec.ts @@ -61,12 +61,10 @@ describe('Menstrual Subscription Service', () => { it('should parse mesntrual subscription duration env value', () => { expect( menstrualSubscriptionService.parseMenstrualSubscriptionDuration(), - ).toEqual( - expect.objectContaining({ - Monthly: 30 * 24 * 60 * 60 * 1000, - Quarterly: 3 * 30 * 24 * 60 * 60 * 1000, - Yearly: 365 * 24 * 60 * 60 * 1000, - }), - ); + ).toEqual({ + Monthly: 30 * 24 * 60 * 60 * 1000, + Quarterly: 3 * 30 * 24 * 60 * 60 * 1000, + Yearly: 365 * 24 * 60 * 60 * 1000, + }); }); });