Skip to content

Commit

Permalink
feat: update streak discount coupon expiration date (openedx#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewPiatetsky authored Jun 2, 2021
1 parent a36da4c commit 5bfca28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/streak-celebration/StreakCelebrationModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function StreakModal({
id="learning.streakCelebration.streakAA759EndDateMessage"
defaultMessage="Ends {date}."
values={{
date: new Date('2021-6-25 00:00').toLocaleDateString({ timeZone: 'UTC' }),
date: new Date('2021-7-20 00:00').toLocaleDateString({ timeZone: 'UTC' }),
}}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('Loaded Tab Page', () => {
const testStore = await initializeTestStore({ courseMetadata }, false);
render(<StreakModal {...mockData} courseId={courseMetadata.id} />, { store: testStore });
expect(screen.getByText('You’ve unlocked a 15% off discount when you upgrade this course for a limited time only.')).toBeInTheDocument();
expect(screen.getByText('Ends 6/25/2021.')).toBeInTheDocument();
expect(screen.getByText('Ends 7/20/2021.')).toBeInTheDocument();
expect(screen.getByText('Continue with course')).toBeInTheDocument();
});
});

0 comments on commit 5bfca28

Please sign in to comment.