Testing Track • Intermediate • 5 mins review
Test: Add coverage for RiskAssessor calculations
Added unit tests for the complex calculation logic in RiskAssessor to ensure we don't introduce regressions.
Scenario Goal & Context
Goal: Write unit tests that verify the mathematical correctness of the calculate() method.
Background: The RiskAssessor has complex math logic that has caused bugs in the past. We need solid test coverage.
Changed Files (2)
- src/services/RiskAssessor.ts +0 -0
- test/services/RiskAssessor.test.ts +18 -0
Ready to practice reviewing this PR?
Open this scenario inside the interactive DiffSense simulator to leave inline comments and receive an automated score.
Start Review Session