Skip to content

Instantly share code, notes, and snippets.

@hcabnettek
Created March 22, 2013 03:31
Show Gist options
  • Save hcabnettek/5218745 to your computer and use it in GitHub Desktop.
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
beforeEach(inject(function ($rootScope, $controller) {
scope = $rootScope.$new();
ctrl = $controller("FooCtrl", {$scope: scope});
}));
@hcabnettek
Copy link
Author

Ahh I needed angular-mocks loaded as well. Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment