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 has been archived by the owner on Apr 12, 2024. It is now read-only.
I'm working with rails + angularjs (1.0.7) and my specs failed at inject() call with the error as in the title (uglifier ofc). After digging into angular codebase I was able to pinpoint the direct cause:
Turns out that rails' mangler does minify $provider, so this helps:
.config(['$provide', function($provide) {...}]);
I'm pretty new to angular, so I'm not sending a patch (on master the code needs the same treatment, I think). Let me know if the change is really needed or I'm just doing something terribly wrong in my specs :)
Edit: a sample spec causing the error in my stack (CoffeeScript):
angular.module("myApplicationModule", []).value("mode", "app").value "version", "v1.0.1"
describe "MyApp", ->
beforeEach module("myApplicationModule")
it "should provide a version", inject(['mode', 'version', (mode, version) ->
expect(version).toEqual "v1.0.1"
])
The text was updated successfully, but these errors were encountered:
Hi,
I'm working with rails + angularjs (1.0.7) and my specs failed at inject() call with the error as in the title (uglifier ofc). After digging into angular codebase I was able to pinpoint the direct cause:
Turns out that rails' mangler does minify $provider, so this helps:
I'm pretty new to angular, so I'm not sending a patch (on master the code needs the same treatment, I think). Let me know if the change is really needed or I'm just doing something terribly wrong in my specs :)
Edit: a sample spec causing the error in my stack (CoffeeScript):
The text was updated successfully, but these errors were encountered: