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
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Is there anyway to get an instance of a specific provider in unit tests to test it?
I'm currently writing a custom provider and want to test it through unit tests, but there seems to be no way to that.
You can do this to configure a provider in unit tests:
So is there any way (maybe with angular.mocks) to get access to a provider instance in unit tests? Or shouldn't one be able to test providers, cause in code you actually deal with service instances?