From 1b84ef0b11eb13b9fd7a7c5d5255e61b4aefc86e Mon Sep 17 00:00:00 2001 From: tanshu Date: Mon, 23 Nov 2020 17:12:27 +0530 Subject: [PATCH] Upgrade to angular v11 --- overlord/package.json | 36 +++++++++---------- .../account-detail.component.spec.ts | 4 +-- overlord/src/app/app-routing.module.ts | 6 ++-- overlord/src/app/app.component.spec.ts | 10 +++--- .../attendance/attendance.component.spec.ts | 4 +-- .../app/auth/login/login.component.spec.ts | 4 +-- .../app/auth/logout/logout.component.spec.ts | 4 +-- .../balance-sheet.component.spec.ts | 4 +-- .../app/cash-flow/cash-flow.component.spec.ts | 4 +-- .../client-detail.component.spec.ts | 4 +-- .../closing-stock.component.spec.ts | 4 +-- .../cost-centre-detail.component.spec.ts | 4 +-- .../src/app/daybook/daybook.component.spec.ts | 4 +-- .../employee-detail.component.spec.ts | 4 +-- overlord/src/app/home/home.component.spec.ts | 4 +-- .../app/incentive/incentive.component.spec.ts | 4 +-- .../app/issue/issue-dialog.component.spec.ts | 4 +-- .../src/app/issue/issue.component.spec.ts | 4 +-- .../journal/journal-dialog.component.spec.ts | 4 +-- .../src/app/journal/journal.component.spec.ts | 4 +-- .../src/app/ledger/ledger.component.spec.ts | 4 +-- .../net-transactions.component.spec.ts | 4 +-- .../payment/payment-dialog.component.spec.ts | 4 +-- .../src/app/payment/payment.component.spec.ts | 4 +-- .../product-group-detail.component.spec.ts | 4 +-- .../product-ledger.component.spec.ts | 4 +-- .../product-detail.component.spec.ts | 4 +-- .../profit-loss/profit-loss.component.spec.ts | 4 +-- .../purchase-entries.component.spec.ts | 4 +-- .../purchase-return-dialog.component.spec.ts | 4 +-- .../purchase-return.component.spec.ts | 4 +-- .../purchase-dialog.component.spec.ts | 4 +-- .../app/purchase/purchase.component.spec.ts | 4 +-- .../app/purchases/purchases.component.spec.ts | 4 +-- .../raw-material-cost.component.spec.ts | 4 +-- .../receipt/receipt-dialog.component.spec.ts | 4 +-- .../src/app/receipt/receipt.component.spec.ts | 4 +-- .../role-detail/role-detail.component.spec.ts | 4 +-- .../confirm-dialog.component.spec.ts | 4 +-- .../image-dialog.component.spec.ts | 4 +-- .../stock-movement.component.spec.ts | 4 +-- .../trial-balance.component.spec.ts | 4 +-- .../app/unposted/unposted.component.spec.ts | 4 +-- .../user-detail/user-detail.component.spec.ts | 4 +-- 44 files changed, 108 insertions(+), 108 deletions(-) diff --git a/overlord/package.json b/overlord/package.json index 5d85a746..c0e542fd 100644 --- a/overlord/package.json +++ b/overlord/package.json @@ -14,18 +14,18 @@ }, "private": true, "dependencies": { - "@angular/animations": "^10.2.1", + "@angular/animations": "^11.0.2", "@angular/cdk": "^10.2.7", - "@angular/common": "^10.2.1", - "@angular/compiler": "^10.2.1", - "@angular/core": "^10.2.1", + "@angular/common": "^11.0.2", + "@angular/compiler": "^11.0.2", + "@angular/core": "^11.0.2", "@angular/flex-layout": "^10.0.0-beta.32", - "@angular/forms": "^10.2.1", + "@angular/forms": "^11.0.2", "@angular/material": "^10.2.7", "@angular/material-moment-adapter": "^10.2.7", - "@angular/platform-browser": "^10.2.1", - "@angular/platform-browser-dynamic": "^10.2.1", - "@angular/router": "^10.2.1", + "@angular/platform-browser": "^11.0.2", + "@angular/platform-browser-dynamic": "^11.0.2", + "@angular/router": "^11.0.2", "@ngx-loading-bar/core": "^5.1.0", "@ngx-loading-bar/http-client": "^5.1.0", "@ngx-loading-bar/router": "^5.1.0", @@ -35,38 +35,38 @@ "mathjs": "^7.6.0", "moment": "^2.29.1", "rxjs": "^6.6.3", - "tslib": "^2.0.2", + "tslib": "^2.0.0", "zone.js": "^0.11.2" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.1002.0", + "@angular-devkit/build-angular": "~0.1100.2", "@angular-eslint/builder": "^0.6.0-beta.0", "@angular-eslint/eslint-plugin": "^0.6.0-beta.0", "@angular-eslint/eslint-plugin-template": "^0.6.0-beta.0", "@angular-eslint/schematics": "^0.6.0-beta.0", "@angular-eslint/template-parser": "^0.6.0-beta.0", - "@angular/cli": "^10.2.0", - "@angular/compiler-cli": "^10.2.1", - "@angular/language-service": "^10.2.1", - "@types/jasmine": "^3.6.0", + "@angular/cli": "^11.0.2", + "@angular/compiler-cli": "^11.0.2", + "@angular/language-service": "^11.0.2", + "@types/jasmine": "~3.6.0", "@types/jasminewd2": "^2.0.3", "@types/mathjs": "^6.0.7", "@types/node": "^14.14.6", "@typescript-eslint/eslint-plugin": "^4.6.1", "@typescript-eslint/parser": "^4.6.1", - "codelyzer": "^6.0.1", + "codelyzer": "^6.0.0", "eslint": "^7.12.1", "eslint-config-airbnb-typescript": "^12.0.0", "eslint-config-prettier": "^6.15.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jsdoc": "^30.7.6", "husky": "^4.3.0", - "jasmine-core": "^3.6.0", - "jasmine-spec-reporter": "^6.0.0", + "jasmine-core": "~3.6.0", + "jasmine-spec-reporter": "~5.0.0", "karma": "^5.2.3", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~3.0.2", - "karma-jasmine": "^4.0.1", + "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", "lint-staged": "^10.5.1", "prettier": "^2.1.2", 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 285860ab..506c00ca 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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('AccountDetailComponent', () => { let component: AccountDetailComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [AccountDetailComponent], diff --git a/overlord/src/app/app-routing.module.ts b/overlord/src/app/app-routing.module.ts index f39b78b0..100a1a2b 100644 --- a/overlord/src/app/app-routing.module.ts +++ b/overlord/src/app/app-routing.module.ts @@ -176,9 +176,9 @@ const appRoutes: Routes = [ imports: [ CommonModule, RouterModule.forRoot(appRoutes, { - onSameUrlNavigation: 'reload', - // enableTracing: true <-- debugging purposes only - }), + onSameUrlNavigation: 'reload', + relativeLinkResolution: 'legacy' +}), ], exports: [RouterModule], declarations: [], diff --git a/overlord/src/app/app.component.spec.ts b/overlord/src/app/app.component.spec.ts index cde32219..7f2e0818 100644 --- a/overlord/src/app/app.component.spec.ts +++ b/overlord/src/app/app.component.spec.ts @@ -1,23 +1,23 @@ -import { async, TestBed } from '@angular/core/testing'; +import { TestBed, waitForAsync } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [AppComponent], }).compileComponents(); })); - it('should create the app', async(() => { + 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'`, async(() => { + 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', async(() => { + it('should render title in a h1 tag', waitForAsync(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; diff --git a/overlord/src/app/attendance/attendance.component.spec.ts b/overlord/src/app/attendance/attendance.component.spec.ts index d644ac35..12489d0e 100644 --- a/overlord/src/app/attendance/attendance.component.spec.ts +++ b/overlord/src/app/attendance/attendance.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('AttendanceComponent', () => { let component: AttendanceComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [AttendanceComponent], diff --git a/overlord/src/app/auth/login/login.component.spec.ts b/overlord/src/app/auth/login/login.component.spec.ts index aae79fd1..d5f3eef5 100644 --- a/overlord/src/app/auth/login/login.component.spec.ts +++ b/overlord/src/app/auth/login/login.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('LoginComponent', () => { let component: LoginComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [HttpClientModule, RouterTestingModule], declarations: [LoginComponent], diff --git a/overlord/src/app/auth/logout/logout.component.spec.ts b/overlord/src/app/auth/logout/logout.component.spec.ts index b80bcdd9..dc6efc93 100644 --- a/overlord/src/app/auth/logout/logout.component.spec.ts +++ b/overlord/src/app/auth/logout/logout.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('LogoutComponent', () => { let component: LogoutComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [HttpClientModule, RouterTestingModule], declarations: [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 fa52161c..82cc5aad 100644 --- a/overlord/src/app/balance-sheet/balance-sheet.component.spec.ts +++ b/overlord/src/app/balance-sheet/balance-sheet.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('BalanceSheetComponent', () => { let component: BalanceSheetComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [BalanceSheetComponent], 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 18cbf658..ab507574 100644 --- a/overlord/src/app/cash-flow/cash-flow.component.spec.ts +++ b/overlord/src/app/cash-flow/cash-flow.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('CashFlowComponent', () => { let component: CashFlowComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [CashFlowComponent], 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 1a06a732..446d9038 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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('ClientDetailComponent', () => { let component: ClientDetailComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [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 6a959c50..a4d2ed28 100644 --- a/overlord/src/app/closing-stock/closing-stock.component.spec.ts +++ b/overlord/src/app/closing-stock/closing-stock.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('ClosingStockComponent', () => { let component: ClosingStockComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [ClosingStockComponent], 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 ff776d23..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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('CostCentreDetailComponent', () => { let component: CostCentreDetailComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [CostCentreDetailComponent], diff --git a/overlord/src/app/daybook/daybook.component.spec.ts b/overlord/src/app/daybook/daybook.component.spec.ts index 8d731f3e..fb7bd586 100644 --- a/overlord/src/app/daybook/daybook.component.spec.ts +++ b/overlord/src/app/daybook/daybook.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('DaybookComponent', () => { let component: DaybookComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [DaybookComponent], 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 b1befaae..2f7b9feb 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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('EmployeeDetailComponent', () => { let component: EmployeeDetailComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [EmployeeDetailComponent], diff --git a/overlord/src/app/home/home.component.spec.ts b/overlord/src/app/home/home.component.spec.ts index 745cd46a..d7c6165d 100644 --- a/overlord/src/app/home/home.component.spec.ts +++ b/overlord/src/app/home/home.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { HomeComponent } from './home.component'; @@ -6,7 +6,7 @@ describe('HomeComponent', () => { let component: HomeComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [HomeComponent], }).compileComponents(); diff --git a/overlord/src/app/incentive/incentive.component.spec.ts b/overlord/src/app/incentive/incentive.component.spec.ts index d6d2fcd8..84bc2a10 100644 --- a/overlord/src/app/incentive/incentive.component.spec.ts +++ b/overlord/src/app/incentive/incentive.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('IncentiveComponent', () => { let component: IncentiveComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [IncentiveComponent], diff --git a/overlord/src/app/issue/issue-dialog.component.spec.ts b/overlord/src/app/issue/issue-dialog.component.spec.ts index 81f8879a..92751f47 100644 --- a/overlord/src/app/issue/issue-dialog.component.spec.ts +++ b/overlord/src/app/issue/issue-dialog.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { IssueDialogComponent } from './issue-dialog.component'; @@ -6,7 +6,7 @@ describe('IssueDialogComponent', () => { let component: IssueDialogComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [IssueDialogComponent], }).compileComponents(); diff --git a/overlord/src/app/issue/issue.component.spec.ts b/overlord/src/app/issue/issue.component.spec.ts index 8efef295..87b20d1a 100644 --- a/overlord/src/app/issue/issue.component.spec.ts +++ b/overlord/src/app/issue/issue.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('IssueComponent', () => { let component: IssueComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [IssueComponent], diff --git a/overlord/src/app/journal/journal-dialog.component.spec.ts b/overlord/src/app/journal/journal-dialog.component.spec.ts index 3ceaf776..1271720c 100644 --- a/overlord/src/app/journal/journal-dialog.component.spec.ts +++ b/overlord/src/app/journal/journal-dialog.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { JournalDialogComponent } from './journal-dialog.component'; @@ -6,7 +6,7 @@ describe('JournalDialogComponent', () => { let component: JournalDialogComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [JournalDialogComponent], }).compileComponents(); diff --git a/overlord/src/app/journal/journal.component.spec.ts b/overlord/src/app/journal/journal.component.spec.ts index 02fe41f7..02f43698 100644 --- a/overlord/src/app/journal/journal.component.spec.ts +++ b/overlord/src/app/journal/journal.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { JournalComponent } from './journal.component'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('JournalComponent', () => { let component: JournalComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [JournalComponent], diff --git a/overlord/src/app/ledger/ledger.component.spec.ts b/overlord/src/app/ledger/ledger.component.spec.ts index 95b39b23..d53f37d4 100644 --- a/overlord/src/app/ledger/ledger.component.spec.ts +++ b/overlord/src/app/ledger/ledger.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('LedgerComponent', () => { let component: LedgerComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [HttpClientModule, ReactiveFormsModule, RouterTestingModule], declarations: [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 0b0b844d..4c9603b6 100644 --- a/overlord/src/app/net-transactions/net-transactions.component.spec.ts +++ b/overlord/src/app/net-transactions/net-transactions.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('NetTransactionsComponent', () => { let component: NetTransactionsComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [NetTransactionsComponent], diff --git a/overlord/src/app/payment/payment-dialog.component.spec.ts b/overlord/src/app/payment/payment-dialog.component.spec.ts index 84ab0866..488f0f27 100644 --- a/overlord/src/app/payment/payment-dialog.component.spec.ts +++ b/overlord/src/app/payment/payment-dialog.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { PaymentDialogComponent } from './payment-dialog.component'; @@ -6,7 +6,7 @@ describe('PaymentDialogComponent', () => { let component: PaymentDialogComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [PaymentDialogComponent], }).compileComponents(); diff --git a/overlord/src/app/payment/payment.component.spec.ts b/overlord/src/app/payment/payment.component.spec.ts index a0682fd9..42f0ae90 100644 --- a/overlord/src/app/payment/payment.component.spec.ts +++ b/overlord/src/app/payment/payment.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { MatDialogModule } from '@angular/material/dialog'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('PaymentComponent', () => { let component: PaymentComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [PaymentComponent], 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 08c8239a..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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('ProductGroupDetailComponent', () => { let component: ProductGroupDetailComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [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 73be2ee0..13093293 100644 --- a/overlord/src/app/product-ledger/product-ledger.component.spec.ts +++ b/overlord/src/app/product-ledger/product-ledger.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('ProductLedgerComponent', () => { let component: ProductLedgerComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [HttpClientModule, ReactiveFormsModule, RouterTestingModule], declarations: [ProductLedgerComponent], 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 6a087d44..728efadb 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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('ProductDetailComponent', () => { let component: ProductDetailComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [ProductDetailComponent], 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 11b814ce..c119894a 100644 --- a/overlord/src/app/profit-loss/profit-loss.component.spec.ts +++ b/overlord/src/app/profit-loss/profit-loss.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('ProfitLossComponent', () => { let component: ProfitLossComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [ProfitLossComponent], 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 50b9ff6f..d7f495e5 100644 --- a/overlord/src/app/purchase-entries/purchase-entries.component.spec.ts +++ b/overlord/src/app/purchase-entries/purchase-entries.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('PurchaseEntriesComponent', () => { let component: PurchaseEntriesComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [PurchaseEntriesComponent], 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 bc6d770a..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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { PurchaseReturnDialogComponent } from './purchase-return-dialog.component'; @@ -6,7 +6,7 @@ describe('PurchaseReturnDialogComponent', () => { let component: PurchaseReturnDialogComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [PurchaseReturnDialogComponent], }).compileComponents(); 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 c38496b1..d5f2a6c8 100644 --- a/overlord/src/app/purchase-return/purchase-return.component.spec.ts +++ b/overlord/src/app/purchase-return/purchase-return.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('PurchaseReturnComponent', () => { let component: PurchaseReturnComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [PurchaseReturnComponent], diff --git a/overlord/src/app/purchase/purchase-dialog.component.spec.ts b/overlord/src/app/purchase/purchase-dialog.component.spec.ts index 3acc6b6b..3b006d9b 100644 --- a/overlord/src/app/purchase/purchase-dialog.component.spec.ts +++ b/overlord/src/app/purchase/purchase-dialog.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { PurchaseDialogComponent } from './purchase-dialog.component'; @@ -7,7 +7,7 @@ describe('PurchaseDialogComponent', () => { let component: PurchaseDialogComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [MatDialogModule, PurchaseDialogComponent], }).compileComponents(); diff --git a/overlord/src/app/purchase/purchase.component.spec.ts b/overlord/src/app/purchase/purchase.component.spec.ts index 2167b6f2..76f59443 100644 --- a/overlord/src/app/purchase/purchase.component.spec.ts +++ b/overlord/src/app/purchase/purchase.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('PurchaseComponent', () => { let component: PurchaseComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [PurchaseComponent], diff --git a/overlord/src/app/purchases/purchases.component.spec.ts b/overlord/src/app/purchases/purchases.component.spec.ts index 6749eab3..06e31b92 100644 --- a/overlord/src/app/purchases/purchases.component.spec.ts +++ b/overlord/src/app/purchases/purchases.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('PurchasesComponent', () => { let component: PurchasesComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [PurchasesComponent], 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 806502a4..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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('RawMaterialCostComponent', () => { let component: RawMaterialCostComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [RawMaterialCostComponent], diff --git a/overlord/src/app/receipt/receipt-dialog.component.spec.ts b/overlord/src/app/receipt/receipt-dialog.component.spec.ts index ffdc0387..d354f1cb 100644 --- a/overlord/src/app/receipt/receipt-dialog.component.spec.ts +++ b/overlord/src/app/receipt/receipt-dialog.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogRef } from '@angular/material/dialog'; import { ReceiptDialogComponent } from './receipt-dialog.component'; @@ -7,7 +7,7 @@ describe('ReceiptDialogComponent', () => { let component: ReceiptDialogComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogRef], declarations: [ReceiptDialogComponent], diff --git a/overlord/src/app/receipt/receipt.component.spec.ts b/overlord/src/app/receipt/receipt.component.spec.ts index f7ff34b3..33184782 100644 --- a/overlord/src/app/receipt/receipt.component.spec.ts +++ b/overlord/src/app/receipt/receipt.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -9,7 +9,7 @@ describe('ReceiptComponent', () => { let component: ReceiptComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [ReceiptComponent], 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 7aaf91a5..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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('RoleDetailComponent', () => { let component: RoleDetailComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [RoleDetailComponent], 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 7e59fd88..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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ConfirmDialogComponent } from './confirm-dialog.component'; @@ -6,7 +6,7 @@ describe('ConfirmDialogComponent', () => { let component: ConfirmDialogComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ConfirmDialogComponent], }).compileComponents(); 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 073ab1a0..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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ImageDialogComponent } from './image-dialog.component'; @@ -6,7 +6,7 @@ describe('ImageDialogComponent', () => { let component: ImageDialogComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ImageDialogComponent], }).compileComponents(); 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 3871a15a..15f9cd73 100644 --- a/overlord/src/app/stock-movement/stock-movement.component.spec.ts +++ b/overlord/src/app/stock-movement/stock-movement.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('StockMovementComponent', () => { let component: StockMovementComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [StockMovementComponent], 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 2f4ec566..ee255890 100644 --- a/overlord/src/app/trial-balance/trial-balance.component.spec.ts +++ b/overlord/src/app/trial-balance/trial-balance.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('TrialBalanceComponent', () => { let component: TrialBalanceComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [TrialBalanceComponent], diff --git a/overlord/src/app/unposted/unposted.component.spec.ts b/overlord/src/app/unposted/unposted.component.spec.ts index 3e128f0c..fd54271f 100644 --- a/overlord/src/app/unposted/unposted.component.spec.ts +++ b/overlord/src/app/unposted/unposted.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('UnpostedComponent', () => { let component: UnpostedComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [HttpClientModule, RouterTestingModule], declarations: [UnpostedComponent], 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 215835a0..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 @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; @@ -8,7 +8,7 @@ describe('UserDetailComponent', () => { let component: UserDetailComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [UserDetailComponent],