richie-education 2.20.0 → 2.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -547,10 +547,11 @@ describe('CourseProductCourseRuns', () => {
|
|
|
547
547
|
const today = new Date();
|
|
548
548
|
const startDate = new Date(enrollment.course_run.start);
|
|
549
549
|
const endDate = new Date(enrollment.course_run.end);
|
|
550
|
-
|
|
550
|
+
|
|
551
|
+
startDate.setDate(today.getDate());
|
|
552
|
+
// keep this before setMonth If the month of today is >= November
|
|
551
553
|
startDate.setFullYear(today.getFullYear());
|
|
552
|
-
|
|
553
|
-
endDate.setFullYear(today.getFullYear());
|
|
554
|
+
startDate.setMonth(today.getMonth() + 2);
|
|
554
555
|
|
|
555
556
|
const newEnrollment = {
|
|
556
557
|
...enrollment,
|
package/package.json
CHANGED