I'm working on an AngularJS application that makes numerous $http
calls. Most of these are working fine: the backends exist and returns the appropriate data. What I'm working on right now makes calls against an incomplete backend.
How can I mock specific calls without messing with or knowing about what's already working?
I've been looking into ngMockE2E
, but that knocks out the entire backend. After setting it to pass through, I don't know how to override just the calls I'm working with.
Is there an easier way to go about this?