I have a problem trying to unit test an angular service. I want to verify that this service is properly …