Commit 92cac35003a7ba3d16c1f8e5bf69212eee34396d
1 parent
1efb68f3
Exists in
master
and in
1 other branch
Remove unused dependency from auth controller
Showing
2 changed files
with
3 additions
and
4 deletions
Show diff stats
src/app/components/auth/auth_controller.spec.ts
| @@ -12,7 +12,7 @@ describe("Controllers", () => { | @@ -12,7 +12,7 @@ describe("Controllers", () => { | ||
| 12 | let AuthServiceMock: AuthService = jasmine.createSpyObj("AuthService", ["login"]); | 12 | let AuthServiceMock: AuthService = jasmine.createSpyObj("AuthService", ["login"]); |
| 13 | 13 | ||
| 14 | // pass AuthServiceMock into the constructor | 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 | // setup of authController -> set the credentials instance property | 17 | // setup of authController -> set the credentials instance property |
| 18 | let credentials = { username: "username", password: "password" }; | 18 | let credentials = { username: "username", password: "password" }; |
| @@ -30,4 +30,4 @@ describe("Controllers", () => { | @@ -30,4 +30,4 @@ describe("Controllers", () => { | ||
| 30 | 30 | ||
| 31 | 31 | ||
| 32 | }); | 32 | }); |
| 33 | -}); | ||
| 34 | \ No newline at end of file | 33 | \ No newline at end of file |
| 34 | +}); |
src/app/components/auth/auth_controller.ts
| @@ -6,7 +6,6 @@ export class AuthController { | @@ -6,7 +6,6 @@ export class AuthController { | ||
| 6 | static $inject = ["$log", "$stateParams", "AuthService"]; | 6 | static $inject = ["$log", "$stateParams", "AuthService"]; |
| 7 | 7 | ||
| 8 | constructor( | 8 | constructor( |
| 9 | - private noosfero: any, | ||
| 10 | private $log: ng.ILogService, | 9 | private $log: ng.ILogService, |
| 11 | private $stateParams: any, | 10 | private $stateParams: any, |
| 12 | private AuthService: AuthService | 11 | private AuthService: AuthService |
| @@ -19,4 +18,4 @@ export class AuthController { | @@ -19,4 +18,4 @@ export class AuthController { | ||
| 19 | login() { | 18 | login() { |
| 20 | this.AuthService.login(this.credentials); | 19 | this.AuthService.login(this.credentials); |
| 21 | } | 20 | } |
| 22 | -} | ||
| 23 | \ No newline at end of file | 21 | \ No newline at end of file |
| 22 | +} |