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,14 +7,12 @@ describe('ReceiptDialogComponent', () => {
let component: ReceiptDialogComponent;
let fixture: ComponentFixture<ReceiptDialogComponent>;
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MatDialogRef],
declarations: [ReceiptDialogComponent],
}).compileComponents();
}),
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MatDialogRef],
declarations: [ReceiptDialogComponent],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ReceiptDialogComponent);

View File

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

View File

@ -173,7 +173,10 @@ export class ReceiptComponent 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;