Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style: solve linter problems
  • Loading branch information
Nicole Garcia committed Nov 22, 2022
commit 968909b0c1effb575a0dd6581ec1c1964f5c7c21
2 changes: 1 addition & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ if (isNotLegacy) {
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule],
})
export class AppRoutingModule {
export class AppRoutingModule {

}
2 changes: 1 addition & 1 deletion src/app/modules/login/services/login.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ describe('LoginService', () => {
expect(localStorage.clear).toHaveBeenCalled();
expect(cookieService.deleteAll).toHaveBeenCalled();
});

it('should return an http observable when call invalidateSessionCooke', () => {
const result = service.invalidateSessionCookie();
expect(result).toBeDefined();
Expand Down
1 change: 0 additions & 1 deletion src/app/modules/login/services/login.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export class LoginService {
return user && this.cookieService.check('idtoken') ? of(true) : of(false);
} else {
return token ? of(true) : of(false);
//return this.isValidToken(token);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class SidebarComponent implements OnInit {
}

getSidebarItems(){
if (this.userInfoService.isAdmin()){
if (this.userInfoService.isAdmin()) {
this.itemsSidebar = [
{ route: '/time-clock', icon: 'far fa-clock', text: 'Time Clock', active: false },
{ route: '/time-entries', icon: 'far fa-file-alt', text: 'Time Entries', active: false },
Expand All @@ -58,7 +58,7 @@ export class SidebarComponent implements OnInit {
{ route: '/customers-management', icon: 'fas fa-users', text: 'Customers', active: false },
{ route: '/users', icon: 'fas fa-user-friends', text: 'Users', active: false },
];
}else {
} else {
this.itemsSidebar = [
{ route: '/time-clock', icon: 'far fa-clock', text: 'Time Clock', active: false },
{ route: '/time-entries', icon: 'far fa-file-alt', text: 'Time Entries', active: false },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class InjectTokenInterceptor implements HttpInterceptor {
if (err instanceof HttpErrorResponse) {
if (err.status === 401) {
this.loginService.logout();
window.open("/login", "_self")
window.open('/login', '_self');
}
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('SubstractDatePipeDisplayAsFloat', () => {
expect(pipe).toBeTruthy();
});

/*TODO: tests will be more robust if they take into account FIXED_POINT_DIGITS*/
/*TODO: tests will be more robust if they take into account FIXED_POINT_DIGITS*/
it('returns the date diff as float hours (xx.xx)', () => {
[
{ endDate: '2021-04-11T10:20:00Z', startDate: '2021-04-11T08:00:00Z', expectedDiff: '2.33' },
Expand Down
6 changes: 3 additions & 3 deletions src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
* APPLICATION IMPORTS
*/

(window as any).process = {
env: { DEBUG: undefined },
};
(window as any).process = {
env: { DEBUG: undefined },
};