vojtajina/angular.js — comment on commit d3ae08d791f3fb9305af4673dc533e093089babb
File: src/angular-mocks.js line 604
By vojtajina:

good catch, but it's not that simple.

There are more functions that bleed to global namespace:
MockXhr, MockHttpExpectation

I would wrap all the stuff into anonymous function closure, but we access these functions during our testing. That's actually purpose of these functions to be defined outside, so that we can test them directly.

So, the best solution I can see, is to build this file - wrap it into function during the build. Any better suggestion ?