Testing · Junior · Question 76 of 78

What does the expect.assertions(n) call guarantee?

Explanation

If an assertion inside a callback never runs, the test fails instead of passing silently.

Further reading

Problem with a question

Testing · Junior · question 76

Test yourself

Take the Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz