Put in order · NestJS course · Module 7: Testing
Mock calls toHaveBeenCalled
Arrange the assertion checking a mock call with arguments:
Items to put in order
- mockService.findAll
- ).toHaveBeenCalledWith(
- { status: 'active' })
- expect(
You can check the correct answer by solving this task in the CodeWorlds game.