Skip to content

Commit e253c6e

Browse files
committed
linting errors
1 parent 2fa1040 commit e253c6e

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

client/src/app/dashboard/user-add/user-add.component.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { MatSelectModule } from '@angular/material/select';
1414
import { UserAddComponent } from './user-add.component';
1515

1616
describe('UserAddComponent', () => {
17-
let component: UserAddComponent;
1817
let fixture: ComponentFixture<UserAddComponent>;
1918
let select: HTMLElement;
2019
let debugElement: DebugElement;

client/src/app/dashboard/user-add/user-add.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { MatDialogRef } from '@angular/material';
33
import { FormControl, Validators } from '@angular/forms';
44

55

6-
export interface usertypes {
6+
export interface UserTypes {
77
value: string;
88
viewValue: string;
99
}
@@ -17,11 +17,11 @@ export class UserAddComponent implements OnInit {
1717
constructor(public thisDialogRefUser: MatDialogRef<UserAddComponent>) { }
1818
userName: String;
1919
secret: String;
20-
userType: usertypes[] = [
20+
userType: UserTypes[] = [
2121
{value: 'Admin', viewValue: 'Admin'},
2222
{value: 'User', viewValue: 'User'}
2323
];
24-
24+
2525

2626
formControl = new FormControl('', [
2727
Validators.required
@@ -42,7 +42,6 @@ export class UserAddComponent implements OnInit {
4242
}
4343

4444
onConfirmAddUser(): void {
45-
console.log("username",this.userName);
4645

4746
this.thisDialogRefUser.close({
4847
status: 'Add',

client/src/app/dashboard/user-management/user-management.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('UserManagementComponent', () => {
3333
}]
3434
})
3535
.compileComponents();
36-
36+
3737
TestBed.overrideModule(BrowserDynamicTestingModule, {
3838
set: {
3939
entryComponents: [AddDialogComponent, DeleteDialogComponent],

client/src/app/model/models/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ export interface User {
22
id?: number;
33
userName: string;
44
userType: string;
5-
}
5+
}

0 commit comments

Comments
 (0)