Click in order · NestJS course · Module 7: Testing
The toHaveBeenCalledTimes method
Arrange the assertion checking the number of mock calls:
Items to click
- expect(
- 1)
- spy
- ).toHaveBeenCalledTimes(
You can check the correct answer by solving this task in the CodeWorlds game.