Created
March 22, 2013 03:31
-
-
Save hcabnettek/5218745 to your computer and use it in GitHub Desktop.
My jasmine test wont run. It's crashing when calling 'inject'. Where is this function defined? I verified Angularjs is loaded but there doesn't seem to be an inject method there. Any help? @kettebach
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beforeEach(inject(function ($rootScope, $controller) { | |
scope = $rootScope.$new(); | |
ctrl = $controller("FooCtrl", {$scope: scope}); | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ahh I needed angular-mocks loaded as well. Fixed!