expect(jest.fn()).toHaveBeenCalled()
Expected mock function to have been called, but it was not called.
129 | expect(firebaseService.firestore.collection).toHaveBeenCalled();
130 | expect(firebaseService.firestore.collection).toHaveBeenCalledWith('botlet');
> 131 | expect(firebaseService.firestore.collection().where).toHaveBeenCalled();
| ^
132 | expect(firebaseService.firestore.collection().where).toHaveBeenCalledWith(`assignedNumbers.123`, '==', true);
133 | });
134 |
at Object.it (custom-settings/custom-settings.service.spec.ts:131:58)
I have this code
and in my test (with jest) I have below code
but I get below error
What I am doing wrong?