radify/angular-file

Hoses ngMockE2E integration

Opened this issue · 2 comments

In debugging why the $httpBackend object throws an error stating "whenGET is not a function", it appears the problem lies in your module's use of $httpBackend. As I'm not proficient enough to figure out what's happening, I can only say that when stepping through the Chrome debugger, at the point where my mock'd data service calls $httpBackend.whenGET... the $httpBackend object is being returned from the angular-file javascript, and not the angular-mocks javascript. Once I comment out your module, my mock'd data works perfectly.

That's interesting. I wonder if it has to do with recent BC breaks in $httpBackend. Would it be possible for you to post a simple example to a plunkr that demonstrates the issue? Thanks.

Hi Nate,

Here’s a plunk that shows the problem: http://plnkr.co/edit/zqPVVVUgTZUsecikWFKh?p=preview http://plnkr.co/edit/zqPVVVUgTZUsecikWFKh?p=preview

If you look in the app.module.js file, I’ve got the reference to ‘ur.file’ commented out. If you uncomment it, the plunk won’t process correctly. If you’re running in Chrome, open the developer tools and look at the console. You’ll see the error. :) Let me know if there’s anything else I can do.

Thanks for looking into this. I’ve tried multiple angular file plugins, and yours is, by far, the simplest and easiest to use.
Michael

On Aug 11, 2015, at 6:53 PM, Nate Abele notifications@github.com wrote:

That's interesting. I wonder if it has to do with recent BC breaks in $httpBackend. Would it be possible for you to post a simple example to a plunkr that demonstrates the issue? Thanks.


Reply to this email directly or view it on GitHub #13 (comment).