If you are looking for a method to behave the opposite of toHaveBeenCalled i.e:
expect(youServiceMock.yourmethod).toHaveBeenCalled();
you can use the following way to do that:
expect(youServiceMock.yourmethod).not.toHaveBeenCalled();
If you are looking for a method to behave the opposite of toHaveBeenCalled i.e:
expect(youServiceMock.yourmethod).toHaveBeenCalled();
you can use the following way to do that:
expect(youServiceMock.yourmethod).not.toHaveBeenCalled();