Commit e1903c92b8728d5178b22352fc99525600b41d6f

Authored by Carlos Purificação
1 parent 4f1c6294

Refactored test methods names

src/app/layout/blocks/login-block/login-block.component.spec.ts
@@ -72,7 +72,7 @@ describe("Components", () => { @@ -72,7 +72,7 @@ describe("Components", () => {
72 expect(authService.logout).toHaveBeenCalled(); 72 expect(authService.logout).toHaveBeenCalled();
73 // After the component logout method execution, fire the 73 // After the component logout method execution, fire the
74 // AuthService event 74 // AuthService event
75 - simulateLogout(); 75 + simulateLogoutEvent();
76 } 76 }
77 77
78 /** 78 /**
@@ -85,13 +85,13 @@ describe("Components", () => { @@ -85,13 +85,13 @@ describe("Components", () => {
85 expect(authService.login).toHaveBeenCalled(); 85 expect(authService.login).toHaveBeenCalled();
86 // After the component login method execution, fire the 86 // After the component login method execution, fire the
87 // AuthService event 87 // AuthService event
88 - simulateLogin(); 88 + simulateLoginEvent();
89 } 89 }
90 90
91 /** 91 /**
92 * Simulate the AuthService loginSuccess event 92 * Simulate the AuthService loginSuccess event
93 */ 93 */
94 - function simulateLogin() { 94 + function simulateLoginEvent() {
95 let localScope: ng.IScope = helper.component["$scope"]; 95 let localScope: ng.IScope = helper.component["$scope"];
96 localScope.$emit(AUTH_EVENTS.loginSuccess); 96 localScope.$emit(AUTH_EVENTS.loginSuccess);
97 } 97 }
@@ -99,7 +99,7 @@ describe("Components", () => { @@ -99,7 +99,7 @@ describe("Components", () => {
99 /** 99 /**
100 * Simulate the AuthService logoutSuccess event 100 * Simulate the AuthService logoutSuccess event
101 */ 101 */
102 - function simulateLogout() { 102 + function simulateLogoutEvent() {
103 let localScope: ng.IScope = helper.component["$scope"]; 103 let localScope: ng.IScope = helper.component["$scope"];
104 localScope.$emit(AUTH_EVENTS.logoutSuccess); 104 localScope.$emit(AUTH_EVENTS.logoutSuccess);
105 } 105 }