Forgot to lint earlier

This commit is contained in:
tanshu committed 2022-07-11 20:14:22 +05:30
1 parent d44c5b3e02
commit facf2df91e
69 files changed
+411 -424

No files matched your search

@@ -6,13 +6,11 @@ describe('PaymentDialogComponent', () => {
let component: PaymentDialogComponent;
let fixture: ComponentFixture<PaymentDialogComponent>;
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [PaymentDialogComponent],
}).compileComponents();
}),
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [PaymentDialogComponent],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(PaymentDialogComponent);
@@ -9,14 +9,12 @@ describe('PaymentComponent', () => {
let component: PaymentComponent;
let fixture: ComponentFixture<PaymentComponent>;
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule],
declarations: [PaymentComponent],
}).compileComponents();
}),
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule],
declarations: [PaymentComponent],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(PaymentComponent);
@@ -174,7 +174,10 @@ export class PaymentComponent implements OnInit, AfterViewInit, OnDestroy {
}
addRow() {
const amount = this.math.parseAmount((this.form.get('addRow') as UntypedFormControl).value.amount, 2);
const amount = this.math.parseAmount(
(this.form.get('addRow') as UntypedFormControl).value.amount,
2,
);
const debit = 1;
if (this.account === null || amount <= 0) {
return;