Forgot to lint earlier

This commit is contained in:
2022-07-11 20:14:22 +05:30
parent d44c5b3e02
commit facf2df91e
69 changed files with 411 additions and 424 deletions

View File

@ -7,13 +7,11 @@ describe('PurchaseDialogComponent', () => {
let component: PurchaseDialogComponent;
let fixture: ComponentFixture<PurchaseDialogComponent>;
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [MatDialogModule, PurchaseDialogComponent],
}).compileComponents();
}),
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [MatDialogModule, PurchaseDialogComponent],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(PurchaseDialogComponent);

View File

@ -9,14 +9,12 @@ describe('PurchaseComponent', () => {
let component: PurchaseComponent;
let fixture: ComponentFixture<PurchaseComponent>;
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule],
declarations: [PurchaseComponent],
}).compileComponents();
}),
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule],
declarations: [PurchaseComponent],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(PurchaseComponent);

View File

@ -238,7 +238,9 @@ export class PurchaseComponent implements OnInit, AfterViewInit, OnDestroy {
this.product = null;
((this.form.get('addRow') as UntypedFormControl).get('price') as UntypedFormControl).enable();
((this.form.get('addRow') as UntypedFormControl).get('tax') as UntypedFormControl).enable();
((this.form.get('addRow') as UntypedFormControl).get('discount') as UntypedFormControl).enable();
(
(this.form.get('addRow') as UntypedFormControl).get('discount') as UntypedFormControl
).enable();
setTimeout(() => {
if (this.productElement) {
this.productElement.nativeElement.focus();