Skip to content

Commit

Permalink
No floating point
Browse files Browse the repository at this point in the history
  • Loading branch information
brizental committed Jan 25, 2023
1 parent a2d2525 commit 421da70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/testAddons.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe('Addons', function() {
for (const expiresOn of subscriptionExpirationCases) {
const mockDetails = { ...SubscriptionDetails };
// We are faking a Stripe subscription, so this value is expected to be in seconds.
mockDetails.subscription.current_period_end = expiresOn / 1000;
mockDetails.subscription.current_period_end = Math.floor(expiresOn / 1000);
ctx.guardianSubscriptionDetailsCallback = () => {
ctx.guardianOverrideEndpoints.GETs['/api/v1/vpn/subscriptionDetails'].status = 200;
ctx.guardianOverrideEndpoints
Expand Down

0 comments on commit 421da70

Please sign in to comment.