{"action":"opened","issue":{"url":"https://api.github.com/repos/karma-runner/karma/issues/1717","labels_url":"https://api.github.com/repos/karma-runner/karma/issues/1717/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma/issues/1717/comments","events_url":"https://api.github.com/repos/karma-runner/karma/issues/1717/events","html_url":"https://github.com/karma-runner/karma/issues/1717","id":117877230,"number":1717,"title":"Angular JS: Error: [$injector:unpr] Unknown provider: $scopeProvider","user":{"login":"realph","id":2334951,"avatar_url":"https://avatars.githubusercontent.com/u/2334951?v=3","gravatar_id":"","url":"https://api.github.com/users/realph","html_url":"https://github.com/realph","followers_url":"https://api.github.com/users/realph/followers","following_url":"https://api.github.com/users/realph/following{/other_user}","gists_url":"https://api.github.com/users/realph/gists{/gist_id}","starred_url":"https://api.github.com/users/realph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realph/subscriptions","organizations_url":"https://api.github.com/users/realph/orgs","repos_url":"https://api.github.com/users/realph/repos","events_url":"https://api.github.com/users/realph/events{/privacy}","received_events_url":"https://api.github.com/users/realph/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-19T18:29:37Z","updated_at":"2015-11-19T18:29:37Z","closed_at":null,"body":"I'm trying to write some unit tests for my app, but I'm running into an issue where I'm getting this error:\r\n\r\n> Chrome 46.0.2490 (Mac OS X 10.10.5) app.customer \"before each\" hook for \"should be created successfully\" FAILED\r\n\tError: [$injector:unpr] Unknown provider: $scopeProvider <- $scope <- Customer\r\n\r\nMy `test.js` file looks like this:\r\n\r\n    describe('app.customers', function() {\r\n      var controller;\r\n\r\n      beforeEach(function() {\r\n        module('app', function($provide) {});\r\n        specHelper.injector(function($controller, $q, $rootScope, DataService) {});\r\n      });\r\n\r\n      beforeEach(function() {\r\n        sinon.stub(DataService, 'getCustomers', function() {\r\n          var deferred = $q.defer();\r\n          deferred.resolve(mockData.getMockCustomers());\r\n          return deferred.promise;\r\n        });\r\n\r\n        controller = $controller('Customer');\r\n        $rootScope.$apply();\r\n      });\r\n\r\n      describe('Customer Controller', function() {\r\n        it('should be created successfully', function() {\r\n          expect(controller).to.be.defined;\r\n        });\r\n      });\r\n\r\n      specHelper.verifyNoOutstandingHttpRequests();\r\n    });\r\n\r\nI'm not sure why it's looking for `$scopeProvider` as I'm not referencing `$scope.provider` in my test.\r\n\r\nI'm pretty new to unit testing in general, so any help with this would be appreciated. Thanks in advance!\r\n\r\nThanks in advance!"}}