Commit e1903c92b8728d5178b22352fc99525600b41d6f
1 parent
4f1c6294
Exists in
master
and in
26 other branches
Refactored test methods names
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/app/layout/blocks/login-block/login-block.component.spec.ts
... | ... | @@ -72,7 +72,7 @@ describe("Components", () => { |
72 | 72 | expect(authService.logout).toHaveBeenCalled(); |
73 | 73 | // After the component logout method execution, fire the |
74 | 74 | // AuthService event |
75 | - simulateLogout(); | |
75 | + simulateLogoutEvent(); | |
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
... | ... | @@ -85,13 +85,13 @@ describe("Components", () => { |
85 | 85 | expect(authService.login).toHaveBeenCalled(); |
86 | 86 | // After the component login method execution, fire the |
87 | 87 | // AuthService event |
88 | - simulateLogin(); | |
88 | + simulateLoginEvent(); | |
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | 92 | * Simulate the AuthService loginSuccess event |
93 | 93 | */ |
94 | - function simulateLogin() { | |
94 | + function simulateLoginEvent() { | |
95 | 95 | let localScope: ng.IScope = helper.component["$scope"]; |
96 | 96 | localScope.$emit(AUTH_EVENTS.loginSuccess); |
97 | 97 | } |
... | ... | @@ -99,7 +99,7 @@ describe("Components", () => { |
99 | 99 | /** |
100 | 100 | * Simulate the AuthService logoutSuccess event |
101 | 101 | */ |
102 | - function simulateLogout() { | |
102 | + function simulateLogoutEvent() { | |
103 | 103 | let localScope: ng.IScope = helper.component["$scope"]; |
104 | 104 | localScope.$emit(AUTH_EVENTS.logoutSuccess); |
105 | 105 | } | ... | ... |