Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RiXelanya committed Feb 20, 2024
1 parent 137797f commit cd4482c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
15 changes: 10 additions & 5 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"}',
};
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
});
});

0 comments on commit cd4482c

Please sign in to comment.