Symptom
When using CareerPathStrategy, courses that have NOT passed their enrollment deadline get a penalty, while courses that ARE past deadline do not. The penalty description even says "Xh past deadline" for courses that still have time.
Expected: The penalty should only apply to courses whose enrollment deadline has already passed.
Context
CareerPathStrategy.applyDeadlinePenalty() calculates hoursUntilDeadline as (deadline - now) / msPerHour. A positive value means the deadline is in the future; a negative value means it has passed.
Hints
TypeScript
TypeScript ready
Test Output
▶
Click "Run Tests" to execute your code