From 26f95936383fc6d04c631f0034d16674a4e556bf Mon Sep 17 00:00:00 2001 From: Anna Gavrilman Date: Tue, 7 May 2019 13:05:51 -0400 Subject: [PATCH] remove passed from course progress for staff view (#4315) --- static/js/components/dashboard/courses/ProgressMessage.js | 2 +- .../js/components/dashboard/courses/ProgressMessage_test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/components/dashboard/courses/ProgressMessage.js b/static/js/components/dashboard/courses/ProgressMessage.js index e37596aeb3..c43556639b 100644 --- a/static/js/components/dashboard/courses/ProgressMessage.js +++ b/static/js/components/dashboard/courses/ProgressMessage.js @@ -86,7 +86,7 @@ export const staffCourseInfo = (courseRun: CourseRun, course: Course) => { } else if (hasCanUpgradeCourseRun(course)) { return "Audited, passed, did not pay" } else if (hasMissedDeadlineCourseRun(course)) { - return "Audited, passed, missed payment deadline" + return "Audited, missed payment deadline" } if (courseRun.status === STATUS_NOT_PASSED) { if (hasPaidForAnyCourseRun(course)) { diff --git a/static/js/components/dashboard/courses/ProgressMessage_test.js b/static/js/components/dashboard/courses/ProgressMessage_test.js index 61055ac23c..2e8823f1da 100644 --- a/static/js/components/dashboard/courses/ProgressMessage_test.js +++ b/static/js/components/dashboard/courses/ProgressMessage_test.js @@ -227,14 +227,14 @@ describe("Course ProgressMessage", () => { "Audited, passed, did not pay" ) }) - it("should return Audited, passed, missed payment deadline", () => { + it("should return Audited, missed payment deadline", () => { makeRunPast(course.runs[0]) makeRunPast(course.runs[1]) course.runs[0].status = STATUS_NOT_PASSED course.runs[1].status = STATUS_MISSED_DEADLINE assert.equal( staffCourseInfo(course.runs[0], course), - "Audited, passed, missed payment deadline" + "Audited, missed payment deadline" ) }) })