Commit 10db14cd authored by Randall Leeds's avatar Randall Leeds

Remove unused injections

parent 2e9b116d
...@@ -3,17 +3,15 @@ angular = require('angular') ...@@ -3,17 +3,15 @@ angular = require('angular')
module.exports = class AppController module.exports = class AppController
this.$inject = [ this.$inject = [
'$controller', '$document', '$location', '$rootScope', '$route', '$scope', '$controller', '$document', '$location', '$route', '$scope', '$window',
'$window',
'auth', 'drafts', 'features', 'identity', 'auth', 'drafts', 'features', 'identity',
'permissions', 'streamer', 'annotationUI', 'streamer', 'annotationUI',
'annotationMapper', 'threading' 'annotationMapper', 'threading'
] ]
constructor: ( constructor: (
$controller, $document, $location, $rootScope, $route, $scope, $controller, $document, $location, $route, $scope, $window,
$window,
auth, drafts, features, identity, auth, drafts, features, identity,
permissions, streamer, annotationUI, streamer, annotationUI,
annotationMapper, threading annotationMapper, threading
) -> ) ->
$controller('AnnotationUIController', {$scope}) $controller('AnnotationUIController', {$scope})
......
...@@ -11,7 +11,6 @@ describe 'AppController', -> ...@@ -11,7 +11,6 @@ describe 'AppController', ->
fakeIdentity = null fakeIdentity = null
fakeLocation = null fakeLocation = null
fakeParams = null fakeParams = null
fakePermissions = null
fakeStore = null fakeStore = null
fakeStreamer = null fakeStreamer = null
fakeStreamFilter = null fakeStreamFilter = null
...@@ -68,10 +67,6 @@ describe 'AppController', -> ...@@ -68,10 +67,6 @@ describe 'AppController', ->
fakeParams = {id: 'test'} fakeParams = {id: 'test'}
fakePermissions = {
permits: sandbox.stub().returns(true)
}
fakeStore = { fakeStore = {
SearchResource: { SearchResource: {
get: sinon.spy() get: sinon.spy()
...@@ -104,7 +99,6 @@ describe 'AppController', -> ...@@ -104,7 +99,6 @@ describe 'AppController', ->
$provide.value 'identity', fakeIdentity $provide.value 'identity', fakeIdentity
$provide.value '$location', fakeLocation $provide.value '$location', fakeLocation
$provide.value '$routeParams', fakeParams $provide.value '$routeParams', fakeParams
$provide.value 'permissions', fakePermissions
$provide.value 'store', fakeStore $provide.value 'store', fakeStore
$provide.value 'streamer', fakeStreamer $provide.value 'streamer', fakeStreamer
$provide.value 'streamfilter', fakeStreamFilter $provide.value 'streamfilter', fakeStreamFilter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment