|
1 | 1 | // FAKE DATA while API / auth work is in development
|
2 | 2 | import { CourseRunEnrollment } from "../../generated/v0"
|
3 | 3 |
|
4 |
| -const soon = (days: number) => { |
| 4 | +const future = (days: number) => { |
5 | 5 | return new Date(new Date().setDate(new Date().getDate() + days)).toISOString()
|
6 | 6 | }
|
7 | 7 |
|
@@ -396,16 +396,16 @@ const courses = {
|
396 | 396 | upgradeable_course_not_started: {
|
397 | 397 | run: {
|
398 | 398 | title: "Upgradeable Course, Not Yet Started",
|
399 |
| - start_date: soon(1), |
400 |
| - end_date: "2040-12-20T15:00:00Z", |
| 399 | + start_date: future(1), |
| 400 | + upgrade_deadline: future(5), |
| 401 | + end_date: future(10000), |
401 | 402 | enrollment_start: "2024-03-07T23:59:00Z",
|
402 | 403 | enrollment_end: "2035-10-25T23:59:00Z",
|
403 | 404 | expiration_date: null,
|
404 | 405 | courseware_url:
|
405 | 406 | "https://courses-qa.mitxonline.mit.edu/courses/course-v1:MITxT+14.73x+3T2023/course",
|
406 | 407 | courseware_id: "course-v1:MITxT+14.73x+3T2023",
|
407 | 408 | certificate_available_date: "2024-01-03T00:00:00Z",
|
408 |
| - upgrade_deadline: "2025-04-10T15:00:00Z", |
409 | 409 | is_upgradable: true,
|
410 | 410 | is_enrollable: false,
|
411 | 411 | is_archived: false,
|
@@ -503,16 +503,16 @@ const courses = {
|
503 | 503 | run: {
|
504 | 504 | title:
|
505 | 505 | "Upgradeable Course, Not Yet Started, And This Course Also Has A Really Long Name That Goes Across Multiple Lines",
|
506 |
| - start_date: soon(5), |
507 |
| - end_date: "2040-12-20T15:00:00Z", |
| 506 | + start_date: future(5), |
| 507 | + upgrade_deadline: future(15), |
| 508 | + end_date: future(10000), |
508 | 509 | enrollment_start: "2024-03-07T23:59:00Z",
|
509 | 510 | enrollment_end: "2035-10-25T23:59:00Z",
|
510 | 511 | expiration_date: null,
|
511 | 512 | courseware_url:
|
512 | 513 | "https://courses-qa.mitxonline.mit.edu/courses/course-v1:MITxT+14.73x+3T2023/course",
|
513 | 514 | courseware_id: "course-v1:MITxT+14.73x+3T2023",
|
514 | 515 | certificate_available_date: "2024-01-03T00:00:00Z",
|
515 |
| - upgrade_deadline: "2025-04-10T15:00:00Z", |
516 | 516 | is_upgradable: true,
|
517 | 517 | is_enrollable: false,
|
518 | 518 | is_archived: false,
|
@@ -610,7 +610,7 @@ const courses = {
|
610 | 610 | not_upgradeable_not_started: {
|
611 | 611 | run: {
|
612 | 612 | title: "Not Upgradeable, Not Started",
|
613 |
| - start_date: soon(10), |
| 613 | + start_date: future(10), |
614 | 614 | end_date: "2040-12-20T15:00:00Z",
|
615 | 615 | enrollment_start: "2024-03-07T23:59:00Z",
|
616 | 616 | enrollment_end: "2035-10-25T23:59:00Z",
|
@@ -717,7 +717,7 @@ const courses = {
|
717 | 717 | "https://courses-qa.mitxonline.mit.edu/courses/course-v1:MITxT+14.73x+3T2023/course",
|
718 | 718 | courseware_id: "course-v1:MITxT+14.73x+3T2023",
|
719 | 719 | certificate_available_date: "2024-01-03T00:00:00Z",
|
720 |
| - upgrade_deadline: "2025-04-10T15:00:00Z", |
| 720 | + upgrade_deadline: future(8), |
721 | 721 | is_upgradable: true,
|
722 | 722 | is_enrollable: false,
|
723 | 723 | is_archived: false,
|
|
0 commit comments