You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
What I am doing wrong?
The text was updated successfully, but these errors were encountered:
RezaRahmati
changed the title
How to check if firestore where condition is called
How to check if firestore where function is called with params
Aug 1, 2019
I have this code
and in my test (with jest) I have below code
but I get below error
What I am doing wrong?
The text was updated successfully, but these errors were encountered: