I'm trying to understand the esriLoader utility in angular-esri-map. I'm not completely clear on the purpose of using it instead of dojo's require directly. Furthermore, I've been completely unable to figure out how to use it in karma/mocha tests. Specifically, the promises never return and mocha times out. Previously, i was using the karma-dojo plugin and calling dojo's require directly which seems to work. My big assumption here is that esriLoader should allow me to ditch the karma-dojo plugin.
I've tried many iterations of this without any luck (including some attempts to add in $rootScope.$apply() calls). Here's just one of them: