Symptom
When using EnterprisePolicy, incidents that are NOT overdue get an SLA penalty, while incidents that ARE overdue do not. The penalty description even says "Xh past deadline" for incidents that still have time left.
Context
EnterprisePolicy extends the base Policy and overrides applySlaPenalty(). It calculates hoursUntilDeadline as (deadline - now) / millisPerHour. A positive value means the deadline is in the future; a negative value means the deadline has passed.
Hints
TypeScript
TypeScript ready
Test Output
▶
Click "Run Tests" to execute your code