From facf2df91eba42f1780963e6186461b84e06941d Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Mon, 11 Jul 2022 20:14:22 +0530 Subject: [PATCH] Forgot to lint earlier --- .../account-detail.component.spec.ts | 14 +++-- overlord/src/app/app.component.spec.ts | 53 ++++++++----------- .../attendance/attendance.component.spec.ts | 14 +++-- .../app/attendance/attendance.component.ts | 7 ++- .../app/auth/login/login.component.spec.ts | 14 +++-- .../app/auth/logout/logout.component.spec.ts | 14 +++-- .../balance-sheet.component.spec.ts | 14 +++-- .../balance-sheet/balance-sheet.component.ts | 6 ++- .../batch-integrity-report.component.spec.ts | 14 +++-- .../app/cash-flow/cash-flow.component.spec.ts | 14 +++-- .../src/app/cash-flow/cash-flow.component.ts | 6 ++- .../client-detail.component.spec.ts | 14 +++-- .../closing-stock.component.spec.ts | 14 +++-- .../closing-stock/closing-stock.component.ts | 16 ++++-- .../cost-centre-detail.component.spec.ts | 14 +++-- .../src/app/daybook/daybook.component.spec.ts | 14 +++-- .../employee-attendance.component.ts | 7 ++- .../employee-detail.component.spec.ts | 14 +++-- .../employee-list/employee-list.component.ts | 6 ++- .../src/app/entries/entries.component.spec.ts | 14 +++-- overlord/src/app/entries/entries.component.ts | 6 ++- overlord/src/app/home/home.component.spec.ts | 12 ++--- .../app/incentive/incentive.component.spec.ts | 14 +++-- .../src/app/incentive/incentive.component.ts | 7 ++- .../app/issue/issue-dialog.component.spec.ts | 12 ++--- .../src/app/issue/issue.component.spec.ts | 14 +++-- .../journal/journal-dialog.component.spec.ts | 12 ++--- .../src/app/journal/journal.component.spec.ts | 14 +++-- .../src/app/ledger/ledger.component.spec.ts | 14 +++-- .../net-transactions.component.spec.ts | 14 +++-- .../net-transactions.component.ts | 6 ++- .../non-contract-purchase.component.spec.ts | 14 +++-- .../payment/payment-dialog.component.spec.ts | 12 ++--- .../src/app/payment/payment.component.spec.ts | 14 +++-- overlord/src/app/payment/payment.component.ts | 5 +- .../product-group-detail.component.spec.ts | 14 +++-- .../product-ledger.component.spec.ts | 14 +++-- .../product-detail-dialog.component.spec.ts | 12 ++--- .../product-detail.component.spec.ts | 14 +++-- .../product-list/product-list.component.ts | 6 ++- .../profit-loss/profit-loss.component.spec.ts | 14 +++-- .../app/profit-loss/profit-loss.component.ts | 6 ++- .../purchase-entries.component.spec.ts | 14 +++-- .../purchase-entries.component.ts | 6 ++- .../purchase-return-dialog.component.spec.ts | 12 ++--- .../purchase-return.component.spec.ts | 14 +++-- .../purchase-dialog.component.spec.ts | 12 ++--- .../app/purchase/purchase.component.spec.ts | 14 +++-- .../src/app/purchase/purchase.component.ts | 4 +- .../app/purchases/purchases.component.spec.ts | 14 +++-- .../src/app/purchases/purchases.component.ts | 6 ++- .../rate-contract-detail.component.spec.ts | 14 +++-- .../raw-material-cost.component.spec.ts | 14 +++-- .../receipt/receipt-dialog.component.spec.ts | 14 +++-- .../src/app/receipt/receipt.component.spec.ts | 14 +++-- overlord/src/app/receipt/receipt.component.ts | 5 +- .../recipe-detail.component.spec.ts | 14 +++-- .../recipe-detail/recipe-detail.component.ts | 6 +-- .../role-detail/role-detail.component.spec.ts | 14 +++-- .../role/role-detail/role-detail.component.ts | 7 ++- .../src/app/settings/settings.component.ts | 19 ++++--- .../confirm-dialog.component.spec.ts | 12 ++--- .../image-dialog.component.spec.ts | 12 ++--- .../stock-movement.component.spec.ts | 14 +++-- .../stock-movement.component.ts | 6 ++- .../trial-balance.component.spec.ts | 14 +++-- .../trial-balance/trial-balance.component.ts | 6 ++- .../user-detail/user-detail.component.spec.ts | 14 +++-- .../user/user-detail/user-detail.component.ts | 7 ++- 69 files changed, 411 insertions(+), 424 deletions(-) diff --git a/overlord/src/app/account/account-detail/account-detail.component.spec.ts b/overlord/src/app/account/account-detail/account-detail.component.spec.ts index 1b4cb02e..dcb1a9ce 100644 --- a/overlord/src/app/account/account-detail/account-detail.component.spec.ts +++ b/overlord/src/app/account/account-detail/account-detail.component.spec.ts @@ -9,14 +9,12 @@ describe('AccountDetailComponent', () => { let component: AccountDetailComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], - declarations: [AccountDetailComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], + declarations: [AccountDetailComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(AccountDetailComponent); diff --git a/overlord/src/app/app.component.spec.ts b/overlord/src/app/app.component.spec.ts index 676b5c8e..cd8bc964 100644 --- a/overlord/src/app/app.component.spec.ts +++ b/overlord/src/app/app.component.spec.ts @@ -3,36 +3,25 @@ import { TestBed, waitForAsync } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [AppComponent], - }).compileComponents(); - }), - ); - it( - 'should create the app', - waitForAsync(() => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; - expect(app).toBeTruthy(); - }), - ); - it( - `should have as title 'app'`, - waitForAsync(() => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; - expect(app.title).toEqual('app'); - }), - ); - it( - 'should render title in a h1 tag', - waitForAsync(() => { - const fixture = TestBed.createComponent(AppComponent); - fixture.detectChanges(); - const compiled = fixture.debugElement.nativeElement; - expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!'); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [AppComponent], + }).compileComponents(); + })); + it('should create the app', waitForAsync(() => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.debugElement.componentInstance; + expect(app).toBeTruthy(); + })); + it(`should have as title 'app'`, waitForAsync(() => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.debugElement.componentInstance; + expect(app.title).toEqual('app'); + })); + it('should render title in a h1 tag', waitForAsync(() => { + const fixture = TestBed.createComponent(AppComponent); + fixture.detectChanges(); + const compiled = fixture.debugElement.nativeElement; + expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!'); + })); }); diff --git a/overlord/src/app/attendance/attendance.component.spec.ts b/overlord/src/app/attendance/attendance.component.spec.ts index 95fcb89c..17342165 100644 --- a/overlord/src/app/attendance/attendance.component.spec.ts +++ b/overlord/src/app/attendance/attendance.component.spec.ts @@ -9,14 +9,12 @@ describe('AttendanceComponent', () => { let component: AttendanceComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], - declarations: [AttendanceComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], + declarations: [AttendanceComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(AttendanceComponent); diff --git a/overlord/src/app/attendance/attendance.component.ts b/overlord/src/app/attendance/attendance.component.ts index 765ffe2d..51ffc571 100644 --- a/overlord/src/app/attendance/attendance.component.ts +++ b/overlord/src/app/attendance/attendance.component.ts @@ -1,5 +1,10 @@ import { Component, OnInit } from '@angular/core'; -import { UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms'; +import { + UntypedFormArray, + UntypedFormBuilder, + UntypedFormControl, + UntypedFormGroup, +} from '@angular/forms'; import { MatDialog } from '@angular/material/dialog'; import { ActivatedRoute, Router } from '@angular/router'; import * as moment from 'moment'; diff --git a/overlord/src/app/auth/login/login.component.spec.ts b/overlord/src/app/auth/login/login.component.spec.ts index 12ed5ee2..a9ad8809 100644 --- a/overlord/src/app/auth/login/login.component.spec.ts +++ b/overlord/src/app/auth/login/login.component.spec.ts @@ -8,14 +8,12 @@ describe('LoginComponent', () => { let component: LoginComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [HttpClientModule, RouterTestingModule], - declarations: [LoginComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [HttpClientModule, RouterTestingModule], + declarations: [LoginComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(LoginComponent); diff --git a/overlord/src/app/auth/logout/logout.component.spec.ts b/overlord/src/app/auth/logout/logout.component.spec.ts index 1a25f67a..f8a7f04a 100644 --- a/overlord/src/app/auth/logout/logout.component.spec.ts +++ b/overlord/src/app/auth/logout/logout.component.spec.ts @@ -8,14 +8,12 @@ describe('LogoutComponent', () => { let component: LogoutComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [HttpClientModule, RouterTestingModule], - declarations: [LogoutComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [HttpClientModule, RouterTestingModule], + declarations: [LogoutComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(LogoutComponent); diff --git a/overlord/src/app/balance-sheet/balance-sheet.component.spec.ts b/overlord/src/app/balance-sheet/balance-sheet.component.spec.ts index a282c1d4..82cc5aad 100644 --- a/overlord/src/app/balance-sheet/balance-sheet.component.spec.ts +++ b/overlord/src/app/balance-sheet/balance-sheet.component.spec.ts @@ -8,14 +8,12 @@ describe('BalanceSheetComponent', () => { let component: BalanceSheetComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [BalanceSheetComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [BalanceSheetComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(BalanceSheetComponent); diff --git a/overlord/src/app/balance-sheet/balance-sheet.component.ts b/overlord/src/app/balance-sheet/balance-sheet.component.ts index 830ecbd7..96195739 100644 --- a/overlord/src/app/balance-sheet/balance-sheet.component.ts +++ b/overlord/src/app/balance-sheet/balance-sheet.component.ts @@ -22,7 +22,11 @@ export class BalanceSheetComponent implements OnInit { /** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */ displayedColumns = ['group', 'name', 'subAmount', 'total']; - constructor(private route: ActivatedRoute, private router: Router, private fb: UntypedFormBuilder) { + constructor( + private route: ActivatedRoute, + private router: Router, + private fb: UntypedFormBuilder, + ) { this.form = this.fb.group({ date: '', }); diff --git a/overlord/src/app/batch-integrity-report/batch-integrity-report.component.spec.ts b/overlord/src/app/batch-integrity-report/batch-integrity-report.component.spec.ts index 2240036e..4acee8eb 100644 --- a/overlord/src/app/batch-integrity-report/batch-integrity-report.component.spec.ts +++ b/overlord/src/app/batch-integrity-report/batch-integrity-report.component.spec.ts @@ -8,14 +8,12 @@ describe('BatchIntegrityComponent', () => { let component: BatchIntegrityReportComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [HttpClientModule, RouterTestingModule], - declarations: [BatchIntegrityReportComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [HttpClientModule, RouterTestingModule], + declarations: [BatchIntegrityReportComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(BatchIntegrityReportComponent); diff --git a/overlord/src/app/cash-flow/cash-flow.component.spec.ts b/overlord/src/app/cash-flow/cash-flow.component.spec.ts index 50bdd070..ab507574 100644 --- a/overlord/src/app/cash-flow/cash-flow.component.spec.ts +++ b/overlord/src/app/cash-flow/cash-flow.component.spec.ts @@ -8,14 +8,12 @@ describe('CashFlowComponent', () => { let component: CashFlowComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [CashFlowComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [CashFlowComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(CashFlowComponent); diff --git a/overlord/src/app/cash-flow/cash-flow.component.ts b/overlord/src/app/cash-flow/cash-flow.component.ts index c2fac92a..fac54a70 100644 --- a/overlord/src/app/cash-flow/cash-flow.component.ts +++ b/overlord/src/app/cash-flow/cash-flow.component.ts @@ -18,7 +18,11 @@ export class CashFlowComponent implements OnInit { /** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */ displayedColumns = ['name', 'amount']; - constructor(private route: ActivatedRoute, private router: Router, private fb: UntypedFormBuilder) { + constructor( + private route: ActivatedRoute, + private router: Router, + private fb: UntypedFormBuilder, + ) { this.form = this.fb.group({ startDate: '', finishDate: '', diff --git a/overlord/src/app/client/client-detail/client-detail.component.spec.ts b/overlord/src/app/client/client-detail/client-detail.component.spec.ts index 23a5ccf5..14936831 100644 --- a/overlord/src/app/client/client-detail/client-detail.component.spec.ts +++ b/overlord/src/app/client/client-detail/client-detail.component.spec.ts @@ -9,14 +9,12 @@ describe('ClientDetailComponent', () => { let component: ClientDetailComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], - declarations: [ClientDetailComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], + declarations: [ClientDetailComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(ClientDetailComponent); diff --git a/overlord/src/app/closing-stock/closing-stock.component.spec.ts b/overlord/src/app/closing-stock/closing-stock.component.spec.ts index 70acbb95..a4d2ed28 100644 --- a/overlord/src/app/closing-stock/closing-stock.component.spec.ts +++ b/overlord/src/app/closing-stock/closing-stock.component.spec.ts @@ -8,14 +8,12 @@ describe('ClosingStockComponent', () => { let component: ClosingStockComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [ClosingStockComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [ClosingStockComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(ClosingStockComponent); diff --git a/overlord/src/app/closing-stock/closing-stock.component.ts b/overlord/src/app/closing-stock/closing-stock.component.ts index 12cc5e98..7ef46050 100644 --- a/overlord/src/app/closing-stock/closing-stock.component.ts +++ b/overlord/src/app/closing-stock/closing-stock.component.ts @@ -1,5 +1,10 @@ import { Component, OnInit, ViewChild } from '@angular/core'; -import { UntypedFormArray, UntypedFormBuilder, FormControl, UntypedFormGroup } from '@angular/forms'; +import { + UntypedFormArray, + UntypedFormBuilder, + FormControl, + UntypedFormGroup, +} from '@angular/forms'; import { MatDialog } from '@angular/material/dialog'; import { MatPaginator } from '@angular/material/paginator'; import { MatSelectChange } from '@angular/material/select'; @@ -137,9 +142,12 @@ export class ClosingStockComponent implements OnInit { Amount: 'amount', }; - const d = JSON.parse(JSON.stringify(this.dataSource.data)).map( - (x: ClosingStockItem)=> ({product: x.product.name, group: x.group, quantity: x.quantity, amount: x.amount}) - ); + const d = JSON.parse(JSON.stringify(this.dataSource.data)).map((x: ClosingStockItem) => ({ + product: x.product.name, + group: x.group, + quantity: x.quantity, + amount: x.amount, + })); const csvData = new Blob([this.toCsv.toCsv(headers, d)], { type: 'text/csv;charset=utf-8;', }); diff --git a/overlord/src/app/cost-centre/cost-centre-detail/cost-centre-detail.component.spec.ts b/overlord/src/app/cost-centre/cost-centre-detail/cost-centre-detail.component.spec.ts index 9c0aeec1..32aa0e0e 100644 --- a/overlord/src/app/cost-centre/cost-centre-detail/cost-centre-detail.component.spec.ts +++ b/overlord/src/app/cost-centre/cost-centre-detail/cost-centre-detail.component.spec.ts @@ -8,14 +8,12 @@ describe('CostCentreDetailComponent', () => { let component: CostCentreDetailComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [CostCentreDetailComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [CostCentreDetailComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(CostCentreDetailComponent); diff --git a/overlord/src/app/daybook/daybook.component.spec.ts b/overlord/src/app/daybook/daybook.component.spec.ts index 106ef770..fb7bd586 100644 --- a/overlord/src/app/daybook/daybook.component.spec.ts +++ b/overlord/src/app/daybook/daybook.component.spec.ts @@ -8,14 +8,12 @@ describe('DaybookComponent', () => { let component: DaybookComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [DaybookComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [DaybookComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(DaybookComponent); diff --git a/overlord/src/app/employee-attendance/employee-attendance.component.ts b/overlord/src/app/employee-attendance/employee-attendance.component.ts index e153ab64..790f7f0d 100644 --- a/overlord/src/app/employee-attendance/employee-attendance.component.ts +++ b/overlord/src/app/employee-attendance/employee-attendance.component.ts @@ -1,5 +1,10 @@ import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core'; -import { UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms'; +import { + UntypedFormArray, + UntypedFormBuilder, + UntypedFormControl, + UntypedFormGroup, +} from '@angular/forms'; import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete'; import { MatDialog } from '@angular/material/dialog'; import { ActivatedRoute, Router } from '@angular/router'; diff --git a/overlord/src/app/employee/employee-detail/employee-detail.component.spec.ts b/overlord/src/app/employee/employee-detail/employee-detail.component.spec.ts index 8e7c02f0..91fa1282 100644 --- a/overlord/src/app/employee/employee-detail/employee-detail.component.spec.ts +++ b/overlord/src/app/employee/employee-detail/employee-detail.component.spec.ts @@ -9,14 +9,12 @@ describe('EmployeeDetailComponent', () => { let component: EmployeeDetailComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], - declarations: [EmployeeDetailComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], + declarations: [EmployeeDetailComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(EmployeeDetailComponent); diff --git a/overlord/src/app/employee/employee-list/employee-list.component.ts b/overlord/src/app/employee/employee-list/employee-list.component.ts index 4c904436..c66e9be2 100644 --- a/overlord/src/app/employee/employee-list/employee-list.component.ts +++ b/overlord/src/app/employee/employee-list/employee-list.component.ts @@ -37,7 +37,11 @@ export class EmployeeListComponent implements OnInit, AfterViewInit { 'leavingDate', ]; - constructor(private route: ActivatedRoute, private fb: UntypedFormBuilder, private toCsv: ToCsvService) { + constructor( + private route: ActivatedRoute, + private fb: UntypedFormBuilder, + private toCsv: ToCsvService, + ) { this.form = this.fb.group({ filter: '', }); diff --git a/overlord/src/app/entries/entries.component.spec.ts b/overlord/src/app/entries/entries.component.spec.ts index c75ffa26..cd38d636 100644 --- a/overlord/src/app/entries/entries.component.spec.ts +++ b/overlord/src/app/entries/entries.component.spec.ts @@ -8,14 +8,12 @@ describe('EntriesComponent', () => { let component: EntriesComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [HttpClientModule, RouterTestingModule], - declarations: [EntriesComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [HttpClientModule, RouterTestingModule], + declarations: [EntriesComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(EntriesComponent); diff --git a/overlord/src/app/entries/entries.component.ts b/overlord/src/app/entries/entries.component.ts index ccaa70ea..cfbcd251 100644 --- a/overlord/src/app/entries/entries.component.ts +++ b/overlord/src/app/entries/entries.component.ts @@ -32,7 +32,11 @@ export class EntriesComponent implements OnInit { posted: boolean | null = null; issue: boolean = false; - constructor(private route: ActivatedRoute, private router: Router, private fb: UntypedFormBuilder) { + constructor( + private route: ActivatedRoute, + private router: Router, + private fb: UntypedFormBuilder, + ) { this.form = this.fb.group({ startDate: '', finishDate: '', diff --git a/overlord/src/app/home/home.component.spec.ts b/overlord/src/app/home/home.component.spec.ts index 3fa303d8..d7c6165d 100644 --- a/overlord/src/app/home/home.component.spec.ts +++ b/overlord/src/app/home/home.component.spec.ts @@ -6,13 +6,11 @@ describe('HomeComponent', () => { let component: HomeComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [HomeComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [HomeComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(HomeComponent); diff --git a/overlord/src/app/incentive/incentive.component.spec.ts b/overlord/src/app/incentive/incentive.component.spec.ts index e72d23f8..952343ea 100644 --- a/overlord/src/app/incentive/incentive.component.spec.ts +++ b/overlord/src/app/incentive/incentive.component.spec.ts @@ -9,14 +9,12 @@ describe('IncentiveComponent', () => { let component: IncentiveComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], - declarations: [IncentiveComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], + declarations: [IncentiveComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(IncentiveComponent); diff --git a/overlord/src/app/incentive/incentive.component.ts b/overlord/src/app/incentive/incentive.component.ts index 56acaba7..20831ca6 100644 --- a/overlord/src/app/incentive/incentive.component.ts +++ b/overlord/src/app/incentive/incentive.component.ts @@ -1,5 +1,10 @@ import { Component, OnInit } from '@angular/core'; -import { UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms'; +import { + UntypedFormArray, + UntypedFormBuilder, + UntypedFormControl, + UntypedFormGroup, +} from '@angular/forms'; import { MatDialog } from '@angular/material/dialog'; import { ActivatedRoute, Router } from '@angular/router'; import * as moment from 'moment'; diff --git a/overlord/src/app/issue/issue-dialog.component.spec.ts b/overlord/src/app/issue/issue-dialog.component.spec.ts index b290580a..92751f47 100644 --- a/overlord/src/app/issue/issue-dialog.component.spec.ts +++ b/overlord/src/app/issue/issue-dialog.component.spec.ts @@ -6,13 +6,11 @@ describe('IssueDialogComponent', () => { let component: IssueDialogComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [IssueDialogComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [IssueDialogComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(IssueDialogComponent); diff --git a/overlord/src/app/issue/issue.component.spec.ts b/overlord/src/app/issue/issue.component.spec.ts index 3dcedc58..817bc9b6 100644 --- a/overlord/src/app/issue/issue.component.spec.ts +++ b/overlord/src/app/issue/issue.component.spec.ts @@ -9,14 +9,12 @@ describe('IssueComponent', () => { let component: IssueComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], - declarations: [IssueComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], + declarations: [IssueComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(IssueComponent); diff --git a/overlord/src/app/journal/journal-dialog.component.spec.ts b/overlord/src/app/journal/journal-dialog.component.spec.ts index 402cd914..1271720c 100644 --- a/overlord/src/app/journal/journal-dialog.component.spec.ts +++ b/overlord/src/app/journal/journal-dialog.component.spec.ts @@ -6,13 +6,11 @@ describe('JournalDialogComponent', () => { let component: JournalDialogComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [JournalDialogComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [JournalDialogComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(JournalDialogComponent); diff --git a/overlord/src/app/journal/journal.component.spec.ts b/overlord/src/app/journal/journal.component.spec.ts index 74a2da5c..44906145 100644 --- a/overlord/src/app/journal/journal.component.spec.ts +++ b/overlord/src/app/journal/journal.component.spec.ts @@ -9,14 +9,12 @@ describe('JournalComponent', () => { let component: JournalComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], - declarations: [JournalComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], + declarations: [JournalComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(JournalComponent); diff --git a/overlord/src/app/ledger/ledger.component.spec.ts b/overlord/src/app/ledger/ledger.component.spec.ts index bd496a05..f4949db6 100644 --- a/overlord/src/app/ledger/ledger.component.spec.ts +++ b/overlord/src/app/ledger/ledger.component.spec.ts @@ -9,14 +9,12 @@ describe('LedgerComponent', () => { let component: LedgerComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [HttpClientModule, ReactiveFormsModule, RouterTestingModule], - declarations: [LedgerComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [HttpClientModule, ReactiveFormsModule, RouterTestingModule], + declarations: [LedgerComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(LedgerComponent); diff --git a/overlord/src/app/net-transactions/net-transactions.component.spec.ts b/overlord/src/app/net-transactions/net-transactions.component.spec.ts index 1f05c654..4c9603b6 100644 --- a/overlord/src/app/net-transactions/net-transactions.component.spec.ts +++ b/overlord/src/app/net-transactions/net-transactions.component.spec.ts @@ -8,14 +8,12 @@ describe('NetTransactionsComponent', () => { let component: NetTransactionsComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [NetTransactionsComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [NetTransactionsComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(NetTransactionsComponent); diff --git a/overlord/src/app/net-transactions/net-transactions.component.ts b/overlord/src/app/net-transactions/net-transactions.component.ts index 2fbc8578..ab09ab4a 100644 --- a/overlord/src/app/net-transactions/net-transactions.component.ts +++ b/overlord/src/app/net-transactions/net-transactions.component.ts @@ -23,7 +23,11 @@ export class NetTransactionsComponent implements OnInit { /** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */ displayedColumns = ['type', 'name', 'debit', 'credit']; - constructor(private route: ActivatedRoute, private router: Router, private fb: UntypedFormBuilder) { + constructor( + private route: ActivatedRoute, + private router: Router, + private fb: UntypedFormBuilder, + ) { this.form = this.fb.group({ startDate: '', finishDate: '', diff --git a/overlord/src/app/non-contact-purchase/non-contract-purchase.component.spec.ts b/overlord/src/app/non-contact-purchase/non-contract-purchase.component.spec.ts index 6a793c83..be4a6d06 100644 --- a/overlord/src/app/non-contact-purchase/non-contract-purchase.component.spec.ts +++ b/overlord/src/app/non-contact-purchase/non-contract-purchase.component.spec.ts @@ -8,14 +8,12 @@ describe('NonContractPurchaseComponent', () => { let component: NonContractPurchaseComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [HttpClientModule, RouterTestingModule], - declarations: [NonContractPurchaseComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [HttpClientModule, RouterTestingModule], + declarations: [NonContractPurchaseComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(NonContractPurchaseComponent); diff --git a/overlord/src/app/payment/payment-dialog.component.spec.ts b/overlord/src/app/payment/payment-dialog.component.spec.ts index 8bfd2bd8..488f0f27 100644 --- a/overlord/src/app/payment/payment-dialog.component.spec.ts +++ b/overlord/src/app/payment/payment-dialog.component.spec.ts @@ -6,13 +6,11 @@ describe('PaymentDialogComponent', () => { let component: PaymentDialogComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [PaymentDialogComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [PaymentDialogComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(PaymentDialogComponent); diff --git a/overlord/src/app/payment/payment.component.spec.ts b/overlord/src/app/payment/payment.component.spec.ts index 132a4152..42f0ae90 100644 --- a/overlord/src/app/payment/payment.component.spec.ts +++ b/overlord/src/app/payment/payment.component.spec.ts @@ -9,14 +9,12 @@ describe('PaymentComponent', () => { let component: PaymentComponent; let fixture: ComponentFixture; - 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); diff --git a/overlord/src/app/payment/payment.component.ts b/overlord/src/app/payment/payment.component.ts index 593de468..28d3f279 100644 --- a/overlord/src/app/payment/payment.component.ts +++ b/overlord/src/app/payment/payment.component.ts @@ -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; diff --git a/overlord/src/app/product-group/product-group-detail/product-group-detail.component.spec.ts b/overlord/src/app/product-group/product-group-detail/product-group-detail.component.spec.ts index 7c6b17d5..73d6ac3d 100644 --- a/overlord/src/app/product-group/product-group-detail/product-group-detail.component.spec.ts +++ b/overlord/src/app/product-group/product-group-detail/product-group-detail.component.spec.ts @@ -8,14 +8,12 @@ describe('ProductGroupDetailComponent', () => { let component: ProductGroupDetailComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [ProductGroupDetailComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [ProductGroupDetailComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(ProductGroupDetailComponent); diff --git a/overlord/src/app/product-ledger/product-ledger.component.spec.ts b/overlord/src/app/product-ledger/product-ledger.component.spec.ts index 538e3354..c97282f3 100644 --- a/overlord/src/app/product-ledger/product-ledger.component.spec.ts +++ b/overlord/src/app/product-ledger/product-ledger.component.spec.ts @@ -9,14 +9,12 @@ describe('ProductLedgerComponent', () => { let component: ProductLedgerComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [HttpClientModule, ReactiveFormsModule, RouterTestingModule], - declarations: [ProductLedgerComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [HttpClientModule, ReactiveFormsModule, RouterTestingModule], + declarations: [ProductLedgerComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(ProductLedgerComponent); diff --git a/overlord/src/app/product/product-detail/product-detail-dialog.component.spec.ts b/overlord/src/app/product/product-detail/product-detail-dialog.component.spec.ts index 939f4681..5a858890 100644 --- a/overlord/src/app/product/product-detail/product-detail-dialog.component.spec.ts +++ b/overlord/src/app/product/product-detail/product-detail-dialog.component.spec.ts @@ -6,13 +6,11 @@ describe('ProductDetailDialogComponent', () => { let component: ProductDetailDialogComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [ProductDetailDialogComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [ProductDetailDialogComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(ProductDetailDialogComponent); diff --git a/overlord/src/app/product/product-detail/product-detail.component.spec.ts b/overlord/src/app/product/product-detail/product-detail.component.spec.ts index 551a3a79..814f5542 100644 --- a/overlord/src/app/product/product-detail/product-detail.component.spec.ts +++ b/overlord/src/app/product/product-detail/product-detail.component.spec.ts @@ -9,14 +9,12 @@ describe('ProductDetailComponent', () => { let component: ProductDetailComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], - declarations: [ProductDetailComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], + declarations: [ProductDetailComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(ProductDetailComponent); diff --git a/overlord/src/app/product/product-list/product-list.component.ts b/overlord/src/app/product/product-list/product-list.component.ts index 77420eb8..d3c84778 100644 --- a/overlord/src/app/product/product-list/product-list.component.ts +++ b/overlord/src/app/product/product-list/product-list.component.ts @@ -29,7 +29,11 @@ export class ProductListComponent implements OnInit, AfterViewInit { private _showExtended = true; - constructor(private route: ActivatedRoute, private fb: UntypedFormBuilder, private toCsv: ToCsvService) { + constructor( + private route: ActivatedRoute, + private fb: UntypedFormBuilder, + private toCsv: ToCsvService, + ) { this.showExtended = true; this.form = this.fb.group({ filter: '', diff --git a/overlord/src/app/profit-loss/profit-loss.component.spec.ts b/overlord/src/app/profit-loss/profit-loss.component.spec.ts index 84f9d91b..c119894a 100644 --- a/overlord/src/app/profit-loss/profit-loss.component.spec.ts +++ b/overlord/src/app/profit-loss/profit-loss.component.spec.ts @@ -8,14 +8,12 @@ describe('ProfitLossComponent', () => { let component: ProfitLossComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [ProfitLossComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [ProfitLossComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(ProfitLossComponent); diff --git a/overlord/src/app/profit-loss/profit-loss.component.ts b/overlord/src/app/profit-loss/profit-loss.component.ts index c1c68dfb..bf2d81e5 100644 --- a/overlord/src/app/profit-loss/profit-loss.component.ts +++ b/overlord/src/app/profit-loss/profit-loss.component.ts @@ -23,7 +23,11 @@ export class ProfitLossComponent implements OnInit { /** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */ displayedColumns = ['group', 'name', 'amount', 'total']; - constructor(private route: ActivatedRoute, private router: Router, private fb: UntypedFormBuilder) { + constructor( + private route: ActivatedRoute, + private router: Router, + private fb: UntypedFormBuilder, + ) { this.form = this.fb.group({ startDate: '', finishDate: '', diff --git a/overlord/src/app/purchase-entries/purchase-entries.component.spec.ts b/overlord/src/app/purchase-entries/purchase-entries.component.spec.ts index e36ae26a..d7f495e5 100644 --- a/overlord/src/app/purchase-entries/purchase-entries.component.spec.ts +++ b/overlord/src/app/purchase-entries/purchase-entries.component.spec.ts @@ -8,14 +8,12 @@ describe('PurchaseEntriesComponent', () => { let component: PurchaseEntriesComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [PurchaseEntriesComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [PurchaseEntriesComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(PurchaseEntriesComponent); diff --git a/overlord/src/app/purchase-entries/purchase-entries.component.ts b/overlord/src/app/purchase-entries/purchase-entries.component.ts index 37e55d6a..f02aae55 100644 --- a/overlord/src/app/purchase-entries/purchase-entries.component.ts +++ b/overlord/src/app/purchase-entries/purchase-entries.component.ts @@ -32,7 +32,11 @@ export class PurchaseEntriesComponent implements OnInit { 'amount', ]; - constructor(private route: ActivatedRoute, private router: Router, private fb: UntypedFormBuilder) { + constructor( + private route: ActivatedRoute, + private router: Router, + private fb: UntypedFormBuilder, + ) { this.form = this.fb.group({ startDate: '', finishDate: '', diff --git a/overlord/src/app/purchase-return/purchase-return-dialog.component.spec.ts b/overlord/src/app/purchase-return/purchase-return-dialog.component.spec.ts index 86c8dc6a..9d220723 100644 --- a/overlord/src/app/purchase-return/purchase-return-dialog.component.spec.ts +++ b/overlord/src/app/purchase-return/purchase-return-dialog.component.spec.ts @@ -6,13 +6,11 @@ describe('PurchaseReturnDialogComponent', () => { let component: PurchaseReturnDialogComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [PurchaseReturnDialogComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [PurchaseReturnDialogComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(PurchaseReturnDialogComponent); diff --git a/overlord/src/app/purchase-return/purchase-return.component.spec.ts b/overlord/src/app/purchase-return/purchase-return.component.spec.ts index 4c3fe869..de04e9b5 100644 --- a/overlord/src/app/purchase-return/purchase-return.component.spec.ts +++ b/overlord/src/app/purchase-return/purchase-return.component.spec.ts @@ -9,14 +9,12 @@ describe('PurchaseReturnComponent', () => { let component: PurchaseReturnComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], - declarations: [PurchaseReturnComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], + declarations: [PurchaseReturnComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(PurchaseReturnComponent); diff --git a/overlord/src/app/purchase/purchase-dialog.component.spec.ts b/overlord/src/app/purchase/purchase-dialog.component.spec.ts index 222d67f1..3b006d9b 100644 --- a/overlord/src/app/purchase/purchase-dialog.component.spec.ts +++ b/overlord/src/app/purchase/purchase-dialog.component.spec.ts @@ -7,13 +7,11 @@ describe('PurchaseDialogComponent', () => { let component: PurchaseDialogComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MatDialogModule, PurchaseDialogComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [MatDialogModule, PurchaseDialogComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(PurchaseDialogComponent); diff --git a/overlord/src/app/purchase/purchase.component.spec.ts b/overlord/src/app/purchase/purchase.component.spec.ts index 722ddf1a..4f3cdcda 100644 --- a/overlord/src/app/purchase/purchase.component.spec.ts +++ b/overlord/src/app/purchase/purchase.component.spec.ts @@ -9,14 +9,12 @@ describe('PurchaseComponent', () => { let component: PurchaseComponent; let fixture: ComponentFixture; - 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); diff --git a/overlord/src/app/purchase/purchase.component.ts b/overlord/src/app/purchase/purchase.component.ts index 917770fc..0ba573cc 100644 --- a/overlord/src/app/purchase/purchase.component.ts +++ b/overlord/src/app/purchase/purchase.component.ts @@ -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(); diff --git a/overlord/src/app/purchases/purchases.component.spec.ts b/overlord/src/app/purchases/purchases.component.spec.ts index 5c824d0b..9ee18ae3 100644 --- a/overlord/src/app/purchases/purchases.component.spec.ts +++ b/overlord/src/app/purchases/purchases.component.spec.ts @@ -9,14 +9,12 @@ describe('PurchasesComponent', () => { let component: PurchasesComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], - declarations: [PurchasesComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], + declarations: [PurchasesComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(PurchasesComponent); diff --git a/overlord/src/app/purchases/purchases.component.ts b/overlord/src/app/purchases/purchases.component.ts index 695a6f92..8d8dc8c6 100644 --- a/overlord/src/app/purchases/purchases.component.ts +++ b/overlord/src/app/purchases/purchases.component.ts @@ -24,7 +24,11 @@ export class PurchasesComponent implements OnInit { /** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */ displayedColumns = ['product', 'quantity', 'rate', 'amount']; - constructor(private route: ActivatedRoute, private router: Router, private fb: UntypedFormBuilder) { + constructor( + private route: ActivatedRoute, + private router: Router, + private fb: UntypedFormBuilder, + ) { this.form = this.fb.group({ startDate: '', finishDate: '', diff --git a/overlord/src/app/rate-contract/rate-contract-detail/rate-contract-detail.component.spec.ts b/overlord/src/app/rate-contract/rate-contract-detail/rate-contract-detail.component.spec.ts index d8add806..2adbc49d 100644 --- a/overlord/src/app/rate-contract/rate-contract-detail/rate-contract-detail.component.spec.ts +++ b/overlord/src/app/rate-contract/rate-contract-detail/rate-contract-detail.component.spec.ts @@ -8,14 +8,12 @@ describe('RateContractDetailComponent', () => { let component: RateContractDetailComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [RateContractDetailComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [RateContractDetailComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(RateContractDetailComponent); diff --git a/overlord/src/app/raw-material-cost/raw-material-cost.component.spec.ts b/overlord/src/app/raw-material-cost/raw-material-cost.component.spec.ts index a661da8a..e465686e 100644 --- a/overlord/src/app/raw-material-cost/raw-material-cost.component.spec.ts +++ b/overlord/src/app/raw-material-cost/raw-material-cost.component.spec.ts @@ -8,14 +8,12 @@ describe('RawMaterialCostComponent', () => { let component: RawMaterialCostComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [RawMaterialCostComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [RawMaterialCostComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(RawMaterialCostComponent); diff --git a/overlord/src/app/receipt/receipt-dialog.component.spec.ts b/overlord/src/app/receipt/receipt-dialog.component.spec.ts index 76398059..d354f1cb 100644 --- a/overlord/src/app/receipt/receipt-dialog.component.spec.ts +++ b/overlord/src/app/receipt/receipt-dialog.component.spec.ts @@ -7,14 +7,12 @@ describe('ReceiptDialogComponent', () => { let component: ReceiptDialogComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [MatDialogRef], - declarations: [ReceiptDialogComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [MatDialogRef], + declarations: [ReceiptDialogComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(ReceiptDialogComponent); diff --git a/overlord/src/app/receipt/receipt.component.spec.ts b/overlord/src/app/receipt/receipt.component.spec.ts index a1dd4a0b..4cb4369a 100644 --- a/overlord/src/app/receipt/receipt.component.spec.ts +++ b/overlord/src/app/receipt/receipt.component.spec.ts @@ -9,14 +9,12 @@ describe('ReceiptComponent', () => { let component: ReceiptComponent; let fixture: ComponentFixture; - 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); diff --git a/overlord/src/app/receipt/receipt.component.ts b/overlord/src/app/receipt/receipt.component.ts index aaf047a8..261e7101 100644 --- a/overlord/src/app/receipt/receipt.component.ts +++ b/overlord/src/app/receipt/receipt.component.ts @@ -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; diff --git a/overlord/src/app/recipe/recipe-detail/recipe-detail.component.spec.ts b/overlord/src/app/recipe/recipe-detail/recipe-detail.component.spec.ts index 09e48d75..6685784e 100644 --- a/overlord/src/app/recipe/recipe-detail/recipe-detail.component.spec.ts +++ b/overlord/src/app/recipe/recipe-detail/recipe-detail.component.spec.ts @@ -8,14 +8,12 @@ describe('ProductGroupDetailComponent', () => { let component: RecipeDetailComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [RecipeDetailComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [RecipeDetailComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(RecipeDetailComponent); diff --git a/overlord/src/app/recipe/recipe-detail/recipe-detail.component.ts b/overlord/src/app/recipe/recipe-detail/recipe-detail.component.ts index 3bd43039..0432edc9 100644 --- a/overlord/src/app/recipe/recipe-detail/recipe-detail.component.ts +++ b/overlord/src/app/recipe/recipe-detail/recipe-detail.component.ts @@ -144,9 +144,9 @@ export class RecipeDetailComponent implements OnInit, AfterViewInit { this.ser .getIngredientDetails(ingredient.id, item.validFrom, item.validTill) .subscribe((x) => - ((this.form.get('addRow') as UntypedFormControl).get('rate') as UntypedFormControl).setValue( - '' + x.costPrice, - ), + ( + (this.form.get('addRow') as UntypedFormControl).get('rate') as UntypedFormControl + ).setValue('' + x.costPrice), ); } diff --git a/overlord/src/app/role/role-detail/role-detail.component.spec.ts b/overlord/src/app/role/role-detail/role-detail.component.spec.ts index 554366ac..f90227ca 100644 --- a/overlord/src/app/role/role-detail/role-detail.component.spec.ts +++ b/overlord/src/app/role/role-detail/role-detail.component.spec.ts @@ -8,14 +8,12 @@ describe('RoleDetailComponent', () => { let component: RoleDetailComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [RoleDetailComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [RoleDetailComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(RoleDetailComponent); diff --git a/overlord/src/app/role/role-detail/role-detail.component.ts b/overlord/src/app/role/role-detail/role-detail.component.ts index f6c87611..696d6513 100644 --- a/overlord/src/app/role/role-detail/role-detail.component.ts +++ b/overlord/src/app/role/role-detail/role-detail.component.ts @@ -1,5 +1,10 @@ import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core'; -import { UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms'; +import { + UntypedFormArray, + UntypedFormBuilder, + UntypedFormControl, + UntypedFormGroup, +} from '@angular/forms'; import { MatDialog } from '@angular/material/dialog'; import { ActivatedRoute, Router } from '@angular/router'; diff --git a/overlord/src/app/settings/settings.component.ts b/overlord/src/app/settings/settings.component.ts index 9aaf8b2c..c5770dd4 100644 --- a/overlord/src/app/settings/settings.component.ts +++ b/overlord/src/app/settings/settings.component.ts @@ -1,5 +1,10 @@ import { Component, OnInit } from '@angular/core'; -import { UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms'; +import { + UntypedFormArray, + UntypedFormBuilder, + UntypedFormControl, + UntypedFormGroup, +} from '@angular/forms'; import { MatDialog } from '@angular/material/dialog'; import { ActivatedRoute, Router } from '@angular/router'; import * as moment from 'moment'; @@ -139,17 +144,17 @@ export class SettingsComponent implements OnInit { if (this.lockOlder && this.olderRolling) { item.start.days = +(this.lockInfoForm.get('olderDays') as UntypedFormControl).value; } else if (this.lockOlder && !this.olderRolling) { - item.start.date = moment((this.lockInfoForm.get('olderDate') as UntypedFormControl).value).format( - 'DD-MMM-YYYY', - ); + item.start.date = moment( + (this.lockInfoForm.get('olderDate') as UntypedFormControl).value, + ).format('DD-MMM-YYYY'); } if (this.lockNewer && this.newerRolling) { item.finish.days = +(this.lockInfoForm.get('newerDays') as UntypedFormControl).value; } if (this.lockNewer && !this.newerRolling) { - item.finish.date = moment((this.lockInfoForm.get('newerDate') as UntypedFormControl).value).format( - 'DD-MMM-YYYY', - ); + item.finish.date = moment( + (this.lockInfoForm.get('newerDate') as UntypedFormControl).value, + ).format('DD-MMM-YYYY'); } const atArray = this.lockInfoForm.get('accountTypes') as UntypedFormArray; this.accountTypes.forEach((at, index) => { diff --git a/overlord/src/app/shared/confirm-dialog/confirm-dialog.component.spec.ts b/overlord/src/app/shared/confirm-dialog/confirm-dialog.component.spec.ts index beda8e35..ad57d9b1 100644 --- a/overlord/src/app/shared/confirm-dialog/confirm-dialog.component.spec.ts +++ b/overlord/src/app/shared/confirm-dialog/confirm-dialog.component.spec.ts @@ -6,13 +6,11 @@ describe('ConfirmDialogComponent', () => { let component: ConfirmDialogComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [ConfirmDialogComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [ConfirmDialogComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(ConfirmDialogComponent); diff --git a/overlord/src/app/shared/image-dialog/image-dialog.component.spec.ts b/overlord/src/app/shared/image-dialog/image-dialog.component.spec.ts index 63497b31..a718757c 100644 --- a/overlord/src/app/shared/image-dialog/image-dialog.component.spec.ts +++ b/overlord/src/app/shared/image-dialog/image-dialog.component.spec.ts @@ -6,13 +6,11 @@ describe('ImageDialogComponent', () => { let component: ImageDialogComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [ImageDialogComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [ImageDialogComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(ImageDialogComponent); diff --git a/overlord/src/app/stock-movement/stock-movement.component.spec.ts b/overlord/src/app/stock-movement/stock-movement.component.spec.ts index 3bcbeabf..15f9cd73 100644 --- a/overlord/src/app/stock-movement/stock-movement.component.spec.ts +++ b/overlord/src/app/stock-movement/stock-movement.component.spec.ts @@ -8,14 +8,12 @@ describe('StockMovementComponent', () => { let component: StockMovementComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [StockMovementComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [StockMovementComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(StockMovementComponent); diff --git a/overlord/src/app/stock-movement/stock-movement.component.ts b/overlord/src/app/stock-movement/stock-movement.component.ts index ec58af85..a9c6f425 100644 --- a/overlord/src/app/stock-movement/stock-movement.component.ts +++ b/overlord/src/app/stock-movement/stock-movement.component.ts @@ -23,7 +23,11 @@ export class StockMovementComponent implements OnInit { /** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */ displayedColumns = ['group', 'name', 'opening', 'purchase', 'issue', 'closing']; - constructor(private route: ActivatedRoute, private router: Router, private fb: UntypedFormBuilder) { + constructor( + private route: ActivatedRoute, + private router: Router, + private fb: UntypedFormBuilder, + ) { this.form = this.fb.group({ startDate: '', finishDate: '', diff --git a/overlord/src/app/trial-balance/trial-balance.component.spec.ts b/overlord/src/app/trial-balance/trial-balance.component.spec.ts index aa2a37be..ee255890 100644 --- a/overlord/src/app/trial-balance/trial-balance.component.spec.ts +++ b/overlord/src/app/trial-balance/trial-balance.component.spec.ts @@ -8,14 +8,12 @@ describe('TrialBalanceComponent', () => { let component: TrialBalanceComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [TrialBalanceComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [TrialBalanceComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(TrialBalanceComponent); diff --git a/overlord/src/app/trial-balance/trial-balance.component.ts b/overlord/src/app/trial-balance/trial-balance.component.ts index 8e3d1c3d..c19bf5e9 100644 --- a/overlord/src/app/trial-balance/trial-balance.component.ts +++ b/overlord/src/app/trial-balance/trial-balance.component.ts @@ -22,7 +22,11 @@ export class TrialBalanceComponent implements OnInit { /** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */ displayedColumns = ['type', 'name', 'debit', 'credit']; - constructor(private route: ActivatedRoute, private router: Router, private fb: UntypedFormBuilder) { + constructor( + private route: ActivatedRoute, + private router: Router, + private fb: UntypedFormBuilder, + ) { this.form = this.fb.group({ date: '', }); diff --git a/overlord/src/app/user/user-detail/user-detail.component.spec.ts b/overlord/src/app/user/user-detail/user-detail.component.spec.ts index 74e94f17..6f918161 100644 --- a/overlord/src/app/user/user-detail/user-detail.component.spec.ts +++ b/overlord/src/app/user/user-detail/user-detail.component.spec.ts @@ -8,14 +8,12 @@ describe('UserDetailComponent', () => { let component: UserDetailComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterTestingModule], - declarations: [UserDetailComponent], - }).compileComponents(); - }), - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ReactiveFormsModule, RouterTestingModule], + declarations: [UserDetailComponent], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(UserDetailComponent); diff --git a/overlord/src/app/user/user-detail/user-detail.component.ts b/overlord/src/app/user/user-detail/user-detail.component.ts index 45ba13c8..1b4c3c83 100644 --- a/overlord/src/app/user/user-detail/user-detail.component.ts +++ b/overlord/src/app/user/user-detail/user-detail.component.ts @@ -1,5 +1,10 @@ import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core'; -import { UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms'; +import { + UntypedFormArray, + UntypedFormBuilder, + UntypedFormControl, + UntypedFormGroup, +} from '@angular/forms'; import { MatDialog } from '@angular/material/dialog'; import { ActivatedRoute, Router } from '@angular/router';