From 92cac35003a7ba3d16c1f8e5bf69212eee34396d Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 10 Mar 2016 10:19:35 -0300 Subject: [PATCH] Remove unused dependency from auth controller --- src/app/components/auth/auth_controller.spec.ts | 4 ++-- src/app/components/auth/auth_controller.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/components/auth/auth_controller.spec.ts b/src/app/components/auth/auth_controller.spec.ts index fce0828..2e7ec8f 100644 --- a/src/app/components/auth/auth_controller.spec.ts +++ b/src/app/components/auth/auth_controller.spec.ts @@ -12,7 +12,7 @@ describe("Controllers", () => { let AuthServiceMock: AuthService = jasmine.createSpyObj("AuthService", ["login"]); // pass AuthServiceMock into the constructor - let authController = new AuthController(null, null, null, AuthServiceMock); + let authController = new AuthController(null, null, AuthServiceMock); // setup of authController -> set the credentials instance property let credentials = { username: "username", password: "password" }; @@ -30,4 +30,4 @@ describe("Controllers", () => { }); -}); \ No newline at end of file +}); diff --git a/src/app/components/auth/auth_controller.ts b/src/app/components/auth/auth_controller.ts index 9691ea9..f2cf457 100644 --- a/src/app/components/auth/auth_controller.ts +++ b/src/app/components/auth/auth_controller.ts @@ -6,7 +6,6 @@ export class AuthController { static $inject = ["$log", "$stateParams", "AuthService"]; constructor( - private noosfero: any, private $log: ng.ILogService, private $stateParams: any, private AuthService: AuthService @@ -19,4 +18,4 @@ export class AuthController { login() { this.AuthService.login(this.credentials); } -} \ No newline at end of file +} -- libgit2 0.21.2