Symptom
The test "should produce base score of 0 for level 1" in scoring.test.ts passes -- but it is asserting the WRONG expected value. If you fix Bug 5 (the off-by-one), this test breaks.
Expected: After the off-by-one fix, level 1 should produce a nonzero score.
Context
This test was written to match the buggy (level - 1) * 10 formula, which gives 0 for level 1. The production code has already been fixed (Bug 5) to use level * 10. The test needs to be updated to match the corrected behavior.
Hints
TypeScript
TypeScript ready
Test Output
▶
Click "Run Tests" to execute your code