EraCode practice
Testing: Verify a function was called with the right args (Jest spy)
JavaScriptintermediateMulti-Part
Summary
Quick check-in on JavaScript testing: understand when to use a spy and implement a tiny Jest assertion to verify call arguments.
Problem preview
### Goal Fill in **one** missing Jest assertion to verify a dependency interaction. - should call exactly once. - Assert that the call used the expected and values. - Happy path only (no error handli…
Attempt this challenge
Sign in to attempt the full challenge with timed AI grading, hints, and test feedback.