Skip to content

Commit 623be20

Browse files
committed
fix: TTA-0 lint errors
1 parent 3cd1566 commit 623be20

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ We strongly recommend that you install it using Node Version Management [https:/
3535

3636
Angular CLI is a Command Line Interface (CLI) to speed up your development with Angular.
3737

38-
Run `npm install -g @angular/cli` to install Angular CLI
38+
Run `npm install -g @angular/cli` to install Angular CLI.
3939

4040
### Docker
4141

src/app/modules/users/components/users-list/users-list.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('UsersListComponent', () => {
4848
declarations: [UsersListComponent],
4949
providers: [provideMockStore({ initialState: state }),
5050
{ provide: ActionsSubject, useValue: actionSub },
51-
{ providers: LoginService, useValue: {}},],
51+
{ providers: LoginService, useValue: {} }, ],
5252
}).compileComponents();
5353
})
5454
);
@@ -249,7 +249,7 @@ describe('UsersListComponent', () => {
249249
const account = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFiYyIsIm5hbWUiOiJhYmMiLCJlbWFpbCI6ImVtYWlsIiwiZ3JvdXBzIjpbImFkbWluIl19.gy1GljkoiuOjP8DzkoLRYE9SldBn5ljRc4kp8rwq7UI';
250250
spyOn(loginService, 'getLocalStorage').and.returnValue(account);
251251
spyOn(userInfoService, 'isAdmin').and.returnValue(of(true));
252-
const response = component.checkRoleCurrentUser('email')
252+
const response = component.checkRoleCurrentUser('email');
253253
expect(response).toBeTrue();
254254
expect(userInfoService.isAdmin).toHaveBeenCalled();
255255
expect(loginService.getLocalStorage).toHaveBeenCalled();
@@ -260,4 +260,4 @@ describe('UsersListComponent', () => {
260260
component.loadUsersSubscription.unsubscribe();
261261
fixture.destroy();
262262
});
263-
});
263+
});

src/app/modules/users/components/users-list/users-list.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export class UsersListComponent implements OnInit, OnDestroy, AfterViewInit {
3737
return ROLES;
3838
}
3939

40-
constructor(private store: Store<User>, private actionsSubject$: ActionsSubject, private userInfoService: UserInfoService, private loginService: LoginService) {
40+
constructor(private store: Store<User>, private actionsSubject$: ActionsSubject,
41+
private userInfoService: UserInfoService, private loginService: LoginService) {
4142
this.isLoading$ = store.pipe(delay(0), select(getIsLoading));
4243
this.helper = new JwtHelperService();
4344
}
@@ -99,7 +100,7 @@ export class UsersListComponent implements OnInit, OnDestroy, AfterViewInit {
99100
)
100101
);
101102
}
102-
103+
103104
checkRoleCurrentUser(userEmail: string){
104105
const token = this.loginService.getLocalStorage('user');
105106
const user = this.helper.decodeToken(token);

0 commit comments

Comments
 (0)