Feat: [AA-950] Streak discount productization (#623)

- Remove Jira tag from StreakCelebrationCouponEnabled prop
- Remove "experiment" from streak discount vars
- Cleaned up warning in unit test
- Added mock function for closeStreakCelebration
- Set End Date to 2 weeks from current date
- Updated unit tests
- Fixed naming issues
- Added official coupon code
- Cast isStreakCelebrationOpen to boolean

Co-authored-by: cdeery <cdeery@edx.edu>
This commit is contained in:
Chris Deery
2021-09-01 12:21:43 -04:00
committed by GitHub
parent 04cc668e9b
commit fda9ab6bce
6 changed files with 26 additions and 24 deletions

View File

@@ -201,7 +201,7 @@ describe('Courseware Service', () => {
celebrations: {
first_section: boolean(false),
streak_length_to_celebrate: null,
streak_discount_experiment_enabled: boolean(false),
streak_discount_enabled: boolean(false),
},
user_has_passing_grade: boolean(false),
course_exit_page_is_active: boolean(false),
@@ -279,7 +279,7 @@ describe('Courseware Service', () => {
celebrations: {
firstSection: false,
streakLengthToCelebrate: null,
streakDiscountExperimentEnabled: false,
streakDiscountEnabled: false,
},
userHasPassingGrade: false,
courseExitPageIsActive: false,