Commit 92cac35003a7ba3d16c1f8e5bf69212eee34396d

Authored by Victor Costa
1 parent 1efb68f3

Remove unused dependency from auth controller

src/app/components/auth/auth_controller.spec.ts
... ... @@ -12,7 +12,7 @@ describe("Controllers", () => {
12 12 let AuthServiceMock: AuthService = jasmine.createSpyObj("AuthService", ["login"]);
13 13  
14 14 // pass AuthServiceMock into the constructor
15   - let authController = new AuthController(null, null, null, AuthServiceMock);
  15 + let authController = new AuthController(null, null, AuthServiceMock);
16 16  
17 17 // setup of authController -> set the credentials instance property
18 18 let credentials = { username: "username", password: "password" };
... ... @@ -30,4 +30,4 @@ describe("Controllers", () => {
30 30  
31 31  
32 32 });
33   -});
34 33 \ No newline at end of file
  34 +});
... ...
src/app/components/auth/auth_controller.ts
... ... @@ -6,7 +6,6 @@ export class AuthController {
6 6 static $inject = ["$log", "$stateParams", "AuthService"];
7 7  
8 8 constructor(
9   - private noosfero: any,
10 9 private $log: ng.ILogService,
11 10 private $stateParams: any,
12 11 private AuthService: AuthService
... ... @@ -19,4 +18,4 @@ export class AuthController {
19 18 login() {
20 19 this.AuthService.login(this.credentials);
21 20 }
22   -}
23 21 \ No newline at end of file
  22 +}
... ...