From 413d2c0a56416acf396afd520ef5d5baf3467f9e Mon Sep 17 00:00:00 2001 From: Guillaume Julien Date: Mon, 24 Jul 2023 12:14:47 +0100 Subject: [PATCH] chore(*): remove unused imports --- src/app/app.component.ts | 4 ++-- .../core/components/server-error/server-error.component.ts | 2 +- .../reference-data-amend-history.component.ts | 2 +- .../reference-data-amend.component.spec.ts | 4 ---- .../reference-data-deleted-list.component.ts | 2 +- .../reference-data-select-type.component.spec.ts | 1 - .../multiple-search-results.component.spec.ts | 2 +- .../single-search-result.component.spec.ts | 1 - .../single-search-result/single-search-result.component.ts | 2 -- .../tech-record-change-status.component.ts | 2 +- .../tech-record-generate-letter.component.ts | 5 ++--- .../tech-record-summary.component.spec.ts | 6 +++--- .../tech-record-title/tech-record-title.component.spec.ts | 1 - .../tech-record-title/tech-record-title.component.ts | 5 ++--- .../batch-vehicle-details.component.ts | 2 +- .../create/create-tech-record.component.spec.ts | 2 +- .../amend/views/test-record/test-record.component.spec.ts | 2 +- .../test-result-summary.component.spec.ts | 7 +------ .../test-type-select/test-type-select.component.spec.ts | 2 -- .../vehicle-header/vehicle-header.component.spec.ts | 6 ++---- .../create/create-test-records-routing.module.ts | 1 - .../create-test-record.component.spec.ts | 2 +- .../create-test-record/create-test-record.component.ts | 2 +- .../create-test-type/create-test-type.component.spec.ts | 2 +- .../field-error-message/field-error-message.component.ts | 1 - src/app/forms/components/select/select.component.spec.ts | 2 +- .../custom-defect/custom-defect.component.ts | 2 +- .../custom-sections/letters/letters.component.spec.ts | 2 +- src/app/forms/custom-sections/tyres/tyres.component.ts | 2 +- src/app/forms/directives/app-trim-whitespace.directive.ts | 1 - src/app/forms/templates/general/audit.template.ts | 1 - src/app/forms/templates/psv/psv-body.template.ts | 2 +- .../section-templates/test/test-section.template.ts | 1 - .../desk-based-vehicle-section-group5-lgv.template.ts | 1 - src/app/forms/templates/trl/trl-purchaser.template.ts | 2 +- src/app/models/reference-data.model.ts | 2 -- src/app/resolvers/test-result/test-result.resolver.spec.ts | 2 -- .../batch-technical-record.service.spec.ts | 3 +-- .../services/result-of-test/result-of-test.service.spec.ts | 1 - src/app/services/result-of-test/result-of-test.service.ts | 4 ++-- src/app/services/test-records/test-records.service.spec.ts | 3 +-- .../components/input-spinner/input-spinner.component.ts | 2 +- .../pipes/get-control-label/get-control-label.pipe.spec.ts | 2 +- .../pipes/get-control-label/get-control-label.pipe.ts | 3 +-- src/app/store/defects/selectors/defects.selectors.spec.ts | 2 +- .../reducers/global-error-service.reducer.spec.ts | 2 +- .../store/reference-data/actions/reference-data.actions.ts | 1 - .../reference-data/effects/reference-data.effects.spec.ts | 2 +- .../store/reference-data/effects/reference-data.effects.ts | 4 ++-- .../effects/tech-record-search.effect.spec.ts | 1 - .../reducer/tech-record-search.reducer.ts | 1 - .../selectors/technical-record-service.selectors.spec.ts | 5 ++--- .../selectors/technical-record-service.selectors.ts | 1 - .../test-records/effects/test-records.effects.spec.ts | 2 -- 54 files changed, 43 insertions(+), 84 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 7f24995fb..5cdfdcc4a 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,6 +1,6 @@ /// import { Component, OnDestroy, OnInit } from '@angular/core'; -import { Router, NavigationEnd, Event, ActivatedRoute } from '@angular/router'; +import { Router, NavigationEnd, Event } from '@angular/router'; import { Store, select } from '@ngrx/store'; import { LoadingService } from '@services/loading/loading.service'; import { UserService } from '@services/user-service/user-service'; @@ -28,7 +28,7 @@ export class AppComponent implements OnInit, OnDestroy { if (event instanceof NavigationEnd) { this.googleAnalyticsService.pageView(document.title, event.urlAfterRedirects); } - }) + }); } ngOnInit() { diff --git a/src/app/core/components/server-error/server-error.component.ts b/src/app/core/components/server-error/server-error.component.ts index b296dcdf0..14b7c50fe 100644 --- a/src/app/core/components/server-error/server-error.component.ts +++ b/src/app/core/components/server-error/server-error.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'app-server-error', diff --git a/src/app/features/reference-data/reference-data-amend-history/reference-data-amend-history.component.ts b/src/app/features/reference-data/reference-data-amend-history/reference-data-amend-history.component.ts index 02af9b4a2..3dd713133 100644 --- a/src/app/features/reference-data/reference-data-amend-history/reference-data-amend-history.component.ts +++ b/src/app/features/reference-data/reference-data-amend-history/reference-data-amend-history.component.ts @@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit } import { ReferenceDataAdminColumn, ReferenceDataModelBase, ReferenceDataResourceType } from '@models/reference-data.model'; import { select, Store } from '@ngrx/store'; import { fetchReferenceDataByKeySearch, ReferenceDataState } from '@store/reference-data'; -import { Observable, of, take, map } from 'rxjs'; +import { Observable, map } from 'rxjs'; import { selectSearchReturn } from '@store/reference-data'; @Component({ diff --git a/src/app/features/reference-data/reference-data-amend/reference-data-amend.component.spec.ts b/src/app/features/reference-data/reference-data-amend/reference-data-amend.component.spec.ts index 3e5c0cc91..bb55138a3 100644 --- a/src/app/features/reference-data/reference-data-amend/reference-data-amend.component.spec.ts +++ b/src/app/features/reference-data/reference-data-amend/reference-data-amend.component.spec.ts @@ -8,10 +8,6 @@ import { MockStore, provideMockStore } from '@ngrx/store/testing'; import { UserService } from '@services/user-service/user-service'; import { initialAppState, State } from '@store/.'; import { ReferenceDataAmendComponent } from './reference-data-amend.component'; -import { of } from 'rxjs'; -import { ReferenceDataResourceType } from '@models/reference-data.model'; -import { DynamicFormGroupComponent } from '@forms/components/dynamic-form-group/dynamic-form-group.component'; -import { QueryList } from '@angular/core'; const mockRefDataService = { loadReferenceData: jest.fn(), diff --git a/src/app/features/reference-data/reference-data-deleted-list/reference-data-deleted-list.component.ts b/src/app/features/reference-data/reference-data-deleted-list/reference-data-deleted-list.component.ts index 6098242ed..13bbbd7f7 100644 --- a/src/app/features/reference-data/reference-data-deleted-list/reference-data-deleted-list.component.ts +++ b/src/app/features/reference-data/reference-data-deleted-list/reference-data-deleted-list.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectorRef, Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; -import { ReferenceDataModelBase, ReferenceDataResourceType, ReferenceDataResourceTypeAudit } from '@models/reference-data.model'; +import { ReferenceDataModelBase, ReferenceDataResourceType } from '@models/reference-data.model'; import { Roles } from '@models/roles.enum'; import { select, Store } from '@ngrx/store'; import { ReferenceDataService } from '@services/reference-data/reference-data.service'; diff --git a/src/app/features/reference-data/reference-data-select-type/reference-data-select-type.component.spec.ts b/src/app/features/reference-data/reference-data-select-type/reference-data-select-type.component.spec.ts index 9bd560272..99a151c6e 100644 --- a/src/app/features/reference-data/reference-data-select-type/reference-data-select-type.component.spec.ts +++ b/src/app/features/reference-data/reference-data-select-type/reference-data-select-type.component.spec.ts @@ -8,7 +8,6 @@ import { ReferenceDataService } from '@services/reference-data/reference-data.se import { UserService } from '@services/user-service/user-service'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ReferenceDataResourceType } from '@models/reference-data.model'; -import { of } from 'rxjs'; import { DynamicFormService } from '@forms/services/dynamic-form.service'; describe('ReferenceDataComponent', () => { diff --git a/src/app/features/search/multiple-search-results/multiple-search-results.component.spec.ts b/src/app/features/search/multiple-search-results/multiple-search-results.component.spec.ts index ad7ead3cd..4b62822e1 100644 --- a/src/app/features/search/multiple-search-results/multiple-search-results.component.spec.ts +++ b/src/app/features/search/multiple-search-results/multiple-search-results.component.spec.ts @@ -8,7 +8,7 @@ import { mockVehicleTechnicalRecordList } from '@mocks/mock-vehicle-technical-re import { provideMockActions } from '@ngrx/effects/testing'; import { Action } from '@ngrx/store'; import { MockStore, provideMockStore } from '@ngrx/store/testing'; -import { SEARCH_TYPES, TechnicalRecordHttpService } from '@services/technical-record-http/technical-record-http.service'; +import { TechnicalRecordHttpService } from '@services/technical-record-http/technical-record-http.service'; import { UserService } from '@services/user-service/user-service'; import { initialAppState, State } from '@store/.'; import { selectQueryParams } from '@store/router/selectors/router.selectors'; diff --git a/src/app/features/search/single-search-result/single-search-result.component.spec.ts b/src/app/features/search/single-search-result/single-search-result.component.spec.ts index a9cc653e5..f95718e8c 100644 --- a/src/app/features/search/single-search-result/single-search-result.component.spec.ts +++ b/src/app/features/search/single-search-result/single-search-result.component.spec.ts @@ -3,7 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { DynamicFormsModule } from '@forms/dynamic-forms.module'; -import { mockVehicleTechnicalRecord } from '@mocks/mock-vehicle-technical-record.mock'; import { MockStore, provideMockStore } from '@ngrx/store/testing'; import { initialAppState, State } from '@store/.'; import { SingleSearchResultComponent } from './single-search-result.component'; diff --git a/src/app/features/search/single-search-result/single-search-result.component.ts b/src/app/features/search/single-search-result/single-search-result.component.ts index 7cb278499..ecd010fea 100644 --- a/src/app/features/search/single-search-result/single-search-result.component.ts +++ b/src/app/features/search/single-search-result/single-search-result.component.ts @@ -2,8 +2,6 @@ import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core import { FormNode } from '@forms/services/dynamic-form.types'; import { createSingleSearchResult } from '@forms/templates/search/single-search-result.template'; import { Roles } from '@models/roles.enum'; -import { VehicleTechRecordModel } from '@models/vehicle-tech-record.model'; -import { TechnicalRecordService } from '@services/technical-record/technical-record.service'; import { SearchResult } from '@store/tech-record-search/reducer/tech-record-search.reducer'; @Component({ diff --git a/src/app/features/tech-record/components/tech-record-change-status/tech-record-change-status.component.ts b/src/app/features/tech-record/components/tech-record-change-status/tech-record-change-status.component.ts index 375ad40ac..eebf3701a 100644 --- a/src/app/features/tech-record/components/tech-record-change-status/tech-record-change-status.component.ts +++ b/src/app/features/tech-record/components/tech-record-change-status/tech-record-change-status.component.ts @@ -1,6 +1,6 @@ import { Component, OnDestroy, OnInit } from '@angular/core'; import { Validators } from '@angular/forms'; -import { ActivatedRoute, ActivatedRouteSnapshot, Router } from '@angular/router'; +import { ActivatedRoute, Router } from '@angular/router'; import { GlobalErrorService } from '@core/components/global-error/global-error.service'; import { CustomFormControl, CustomFormGroup, FormNodeTypes } from '@forms/services/dynamic-form.types'; import { StatusCodes, TechRecordModel, VehicleTechRecordModel } from '@models/vehicle-tech-record.model'; diff --git a/src/app/features/tech-record/components/tech-record-generate-letter/tech-record-generate-letter.component.ts b/src/app/features/tech-record/components/tech-record-generate-letter/tech-record-generate-letter.component.ts index 42fe71306..18f81025f 100644 --- a/src/app/features/tech-record/components/tech-record-generate-letter/tech-record-generate-letter.component.ts +++ b/src/app/features/tech-record/components/tech-record-generate-letter/tech-record-generate-letter.component.ts @@ -1,18 +1,17 @@ -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; import { FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { GlobalErrorService } from '@core/components/global-error/global-error.service'; import { DynamicFormService } from '@forms/services/dynamic-form.service'; import { CustomFormControl, FormNodeOption, FormNodeTypes, FormNodeWidth } from '@forms/services/dynamic-form.types'; import { LETTER_TYPES } from '@forms/templates/general/letter-types'; -import { approvalType, LettersIntoAuthApprovalType, LettersOfAuth, TechRecordModel, VehicleTechRecordModel } from '@models/vehicle-tech-record.model'; +import { approvalType, LettersOfAuth, TechRecordModel, VehicleTechRecordModel } from '@models/vehicle-tech-record.model'; import { Actions, ofType } from '@ngrx/effects'; import { Store } from '@ngrx/store'; import { TechnicalRecordService } from '@services/technical-record/technical-record.service'; import { UserService } from '@services/user-service/user-service'; import { generateLetter, generateLetterSuccess } from '@store/technical-records'; import { TechnicalRecordServiceState } from '@store/technical-records/reducers/technical-record-service.reducer'; -import cloneDeep from 'lodash.clonedeep'; import { take } from 'rxjs'; @Component({ diff --git a/src/app/features/tech-record/components/tech-record-summary/tech-record-summary.component.spec.ts b/src/app/features/tech-record/components/tech-record-summary/tech-record-summary.component.spec.ts index c06dd207d..41e906d7d 100644 --- a/src/app/features/tech-record/components/tech-record-summary/tech-record-summary.component.spec.ts +++ b/src/app/features/tech-record/components/tech-record-summary/tech-record-summary.component.spec.ts @@ -1,5 +1,5 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; -import { Component, QueryList } from '@angular/core'; +import { QueryList } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { RouterTestingModule } from '@angular/router/testing'; @@ -7,10 +7,10 @@ import { DynamicFormGroupComponent } from '@forms/components/dynamic-form-group/ import { LettersComponent } from '@forms/custom-sections/letters/letters.component'; import { DynamicFormsModule } from '@forms/dynamic-forms.module'; import { MultiOptionsService } from '@forms/services/multi-options.service'; -import { mockVehicleTechnicalRecord, mockVehicleTechnicalRecordList } from '@mocks/mock-vehicle-technical-record.mock'; +import { mockVehicleTechnicalRecord } from '@mocks/mock-vehicle-technical-record.mock'; import { createMockTrl } from '@mocks/trl-record.mock'; import { Roles } from '@models/roles.enum'; -import { LettersOfAuth, VehicleTypes } from '@models/vehicle-tech-record.model'; +import { VehicleTypes } from '@models/vehicle-tech-record.model'; import { MockStore, provideMockStore } from '@ngrx/store/testing'; import { UserService } from '@services/user-service/user-service'; import { SharedModule } from '@shared/shared.module'; diff --git a/src/app/features/tech-record/components/tech-record-title/tech-record-title.component.spec.ts b/src/app/features/tech-record/components/tech-record-title/tech-record-title.component.spec.ts index eeceb43f7..205f0d8e7 100644 --- a/src/app/features/tech-record/components/tech-record-title/tech-record-title.component.spec.ts +++ b/src/app/features/tech-record/components/tech-record-title/tech-record-title.component.spec.ts @@ -2,7 +2,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { RouterTestingModule } from '@angular/router/testing'; -import { TechRecord } from '@api/vehicle'; import { DynamicFormsModule } from '@forms/dynamic-forms.module'; import { mockVehicleTechnicalRecord } from '@mocks/mock-vehicle-technical-record.mock'; import { Roles } from '@models/roles.enum'; diff --git a/src/app/features/tech-record/components/tech-record-title/tech-record-title.component.ts b/src/app/features/tech-record/components/tech-record-title/tech-record-title.component.ts index 4574104eb..b405848b4 100644 --- a/src/app/features/tech-record/components/tech-record-title/tech-record-title.component.ts +++ b/src/app/features/tech-record/components/tech-record-title/tech-record-title.component.ts @@ -3,10 +3,9 @@ import { ActivatedRoute, Params, Router } from '@angular/router'; import { Roles } from '@models/roles.enum'; import { TechRecordActions } from '@models/tech-record/tech-record-actions.enum'; import { StatusCodes, TechRecordModel, VehicleTechRecordModel, VehicleTypes, Vrm } from '@models/vehicle-tech-record.model'; -import { select, Store } from '@ngrx/store'; +import { Store } from '@ngrx/store'; import { TechnicalRecordService } from '@services/technical-record/technical-record.service'; -import { editableTechRecord } from '@store/technical-records'; -import { Observable, of, switchMap, take } from 'rxjs'; +import { Observable, take } from 'rxjs'; @Component({ selector: 'app-tech-record-title[vehicle]', diff --git a/src/app/features/tech-record/create-batch/components/batch-vehicle-details/batch-vehicle-details.component.ts b/src/app/features/tech-record/create-batch/components/batch-vehicle-details/batch-vehicle-details.component.ts index 58ae7a030..d4de92499 100644 --- a/src/app/features/tech-record/create-batch/components/batch-vehicle-details/batch-vehicle-details.component.ts +++ b/src/app/features/tech-record/create-batch/components/batch-vehicle-details/batch-vehicle-details.component.ts @@ -1,5 +1,5 @@ import { Component, OnDestroy, OnInit } from '@angular/core'; -import { AbstractControl, FormArray, FormBuilder, FormControl, FormControlStatus, FormGroup, Validators } from '@angular/forms'; +import { AbstractControl, FormArray, FormBuilder, FormControlStatus, FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { GlobalError } from '@core/components/global-error/global-error.interface'; import { GlobalErrorService } from '@core/components/global-error/global-error.service'; diff --git a/src/app/features/tech-record/create/create-tech-record.component.spec.ts b/src/app/features/tech-record/create/create-tech-record.component.spec.ts index 8cd22c05c..5cec7a714 100644 --- a/src/app/features/tech-record/create/create-tech-record.component.spec.ts +++ b/src/app/features/tech-record/create/create-tech-record.component.spec.ts @@ -1,5 +1,5 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; -import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; diff --git a/src/app/features/test-records/amend/views/test-record/test-record.component.spec.ts b/src/app/features/test-records/amend/views/test-record/test-record.component.spec.ts index 8be689dbb..6ddb6af05 100644 --- a/src/app/features/test-records/amend/views/test-record/test-record.component.spec.ts +++ b/src/app/features/test-records/amend/views/test-record/test-record.component.spec.ts @@ -18,7 +18,7 @@ import { UserService } from '@services/user-service/user-service'; import { SharedModule } from '@shared/shared.module'; import { initialAppState, State } from '@store/.'; import { routeEditable, selectRouteData, selectRouteNestedParams } from '@store/router/selectors/router.selectors'; -import { initialTestResultsState, isTestTypeKeySame, sectionTemplates, testResultInEdit, updateTestResultSuccess } from '@store/test-records'; +import { initialTestResultsState, isTestTypeKeySame, sectionTemplates, testResultInEdit } from '@store/test-records'; import { of, ReplaySubject } from 'rxjs'; import { DynamicFormsModule } from '../../../../../forms/dynamic-forms.module'; import { BaseTestRecordComponent } from '../../../components/base-test-record/base-test-record.component'; diff --git a/src/app/features/test-records/amend/views/test-result-summary/test-result-summary.component.spec.ts b/src/app/features/test-records/amend/views/test-result-summary/test-result-summary.component.spec.ts index d7e409c77..bad823871 100644 --- a/src/app/features/test-records/amend/views/test-result-summary/test-result-summary.component.spec.ts +++ b/src/app/features/test-records/amend/views/test-result-summary/test-result-summary.component.spec.ts @@ -2,10 +2,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { ApiModule as TestResultsApiModule } from '@api/test-results'; -import { TestType } from '@models/test-types/test-type.model'; -import { Defect } from '@models/defects/defect.model'; -import { Roles } from '@models/roles.enum'; -import { TestResultModel } from '@models/test-results/test-result.model'; import { MockStore, provideMockStore } from '@ngrx/store/testing'; import { RouterService } from '@services/router/router.service'; import { TechnicalRecordService } from '@services/technical-record/technical-record.service'; @@ -13,8 +9,7 @@ import { TestRecordsService } from '@services/test-records/test-records.service' import { NumberPlateComponent } from '@shared/components/number-plate/number-plate.component'; import { TagComponent } from '@shared/components/tag/tag.component'; import { initialAppState } from '@store/.'; -import { defects, DefectsState } from '@store/defects'; -import { of } from 'rxjs'; +import { DefectsState } from '@store/defects'; import { VehicleHeaderComponent } from '../../../components/vehicle-header/vehicle-header.component'; import { TestResultSummaryComponent } from './test-result-summary.component'; diff --git a/src/app/features/test-records/components/test-type-select/test-type-select.component.spec.ts b/src/app/features/test-records/components/test-type-select/test-type-select.component.spec.ts index 2625f8925..b809d6982 100644 --- a/src/app/features/test-records/components/test-type-select/test-type-select.component.spec.ts +++ b/src/app/features/test-records/components/test-type-select/test-type-select.component.spec.ts @@ -1,6 +1,4 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { ActivatedRoute, Router } from '@angular/router'; -import { RouterTestingModule } from '@angular/router/testing'; import { TestType, TestTypeCategory } from '@api/test-types'; import { DynamicFormService } from '@forms/services/dynamic-form.service'; import { provideMockStore } from '@ngrx/store/testing'; diff --git a/src/app/features/test-records/components/vehicle-header/vehicle-header.component.spec.ts b/src/app/features/test-records/components/vehicle-header/vehicle-header.component.spec.ts index 9398d737a..b648d1c8c 100644 --- a/src/app/features/test-records/components/vehicle-header/vehicle-header.component.spec.ts +++ b/src/app/features/test-records/components/vehicle-header/vehicle-header.component.spec.ts @@ -1,15 +1,13 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { TestTypesService } from '@api/test-types'; -import { MockStore, provideMockStore } from '@ngrx/store/testing'; +import { provideMockStore } from '@ngrx/store/testing'; import { ResultOfTestService } from '@services/result-of-test/result-of-test.service'; import { SharedModule } from '@shared/shared.module'; -import { State, initialAppState } from '@store/.'; +import { initialAppState } from '@store/.'; import { VehicleHeaderComponent } from './vehicle-header.component'; import { TechRecordModel, VehicleTypes, VehicleConfigurations } from '@models/vehicle-tech-record.model'; import { RouterTestingModule } from '@angular/router/testing'; -import { RouterService } from '@services/router/router.service'; -import { selectRouteData } from '@store/router/selectors/router.selectors'; import { TechnicalRecordService } from '@services/technical-record/technical-record.service'; import { of } from 'rxjs'; import { mockVehicleTechnicalRecord } from '@mocks/mock-vehicle-technical-record.mock'; diff --git a/src/app/features/test-records/create/create-test-records-routing.module.ts b/src/app/features/test-records/create/create-test-records-routing.module.ts index d9582dfda..1e345785d 100644 --- a/src/app/features/test-records/create/create-test-records-routing.module.ts +++ b/src/app/features/test-records/create/create-test-records-routing.module.ts @@ -4,7 +4,6 @@ import { DefectSelectComponent } from '@forms/components/defect-select/defect-se import { DefectComponent } from '@forms/custom-sections/defect/defect.component'; import { RoleGuard } from '@guards/role-guard/roles.guard'; import { Roles } from '@models/roles.enum'; -import { TestStationStatuses } from '@models/test-stations/test-station.model'; import { ContingencyTestResolver } from 'src/app/resolvers/contingency-test/contingency-test.resolver'; import { DefectsTaxonomyResolver } from 'src/app/resolvers/defects-taxonomy/defects-taxonomy.resolver'; import { TestStationsResolver } from 'src/app/resolvers/test-stations/test-stations.resolver'; diff --git a/src/app/features/test-records/create/views/create-test-record/create-test-record.component.spec.ts b/src/app/features/test-records/create/views/create-test-record/create-test-record.component.spec.ts index aeb808219..aa3b5840a 100644 --- a/src/app/features/test-records/create/views/create-test-record/create-test-record.component.spec.ts +++ b/src/app/features/test-records/create/views/create-test-record/create-test-record.component.spec.ts @@ -1,5 +1,5 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; -import { ComponentFixture, discardPeriodicTasks, fakeAsync, flush, flushMicrotasks, TestBed, tick } from '@angular/core/testing'; +import { ComponentFixture, fakeAsync, flush, TestBed, tick } from '@angular/core/testing'; import { Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { DefaultService as CreateTestResultsService, GetTestResultsService, UpdateTestResultsService } from '@api/test-results'; diff --git a/src/app/features/test-records/create/views/create-test-record/create-test-record.component.ts b/src/app/features/test-records/create/views/create-test-record/create-test-record.component.ts index f31729be2..6eeb6e6da 100644 --- a/src/app/features/test-records/create/views/create-test-record/create-test-record.component.ts +++ b/src/app/features/test-records/create/views/create-test-record/create-test-record.component.ts @@ -17,7 +17,7 @@ import { State } from '@store/index'; import { createTestResultSuccess } from '@store/test-records'; import { getTypeOfTest } from '@store/test-types/selectors/test-types.selectors'; import cloneDeep from 'lodash.clonedeep'; -import { BehaviorSubject, filter, firstValueFrom, map, Observable, of, ReplaySubject, Subject, switchMap, take, takeUntil, tap } from 'rxjs'; +import { BehaviorSubject, filter, firstValueFrom, map, Observable, of, Subject, take, takeUntil, tap } from 'rxjs'; import { BaseTestRecordComponent } from '../../../components/base-test-record/base-test-record.component'; @Component({ diff --git a/src/app/features/test-records/create/views/create-test-type/create-test-type.component.spec.ts b/src/app/features/test-records/create/views/create-test-type/create-test-type.component.spec.ts index 9bc95c4c9..c8ac7776b 100644 --- a/src/app/features/test-records/create/views/create-test-type/create-test-type.component.spec.ts +++ b/src/app/features/test-records/create/views/create-test-type/create-test-type.component.spec.ts @@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ActivatedRoute, Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { TestType } from '@api/test-types'; -import { TechRecordModel, VehicleTechRecordModel } from '@models/vehicle-tech-record.model'; +import { TechRecordModel } from '@models/vehicle-tech-record.model'; import { provideMockStore } from '@ngrx/store/testing'; import { TechnicalRecordService } from '@services/technical-record/technical-record.service'; import { TestTypesService } from '@services/test-types/test-types.service'; diff --git a/src/app/forms/components/field-error-message/field-error-message.component.ts b/src/app/forms/components/field-error-message/field-error-message.component.ts index 29128f374..d863934a5 100644 --- a/src/app/forms/components/field-error-message/field-error-message.component.ts +++ b/src/app/forms/components/field-error-message/field-error-message.component.ts @@ -1,5 +1,4 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; -import { FormNodeWidth } from '@forms/services/dynamic-form.types'; @Component({ selector: 'app-field-error-message', diff --git a/src/app/forms/components/select/select.component.spec.ts b/src/app/forms/components/select/select.component.spec.ts index 42e480c8c..37bcca483 100644 --- a/src/app/forms/components/select/select.component.spec.ts +++ b/src/app/forms/components/select/select.component.spec.ts @@ -1,5 +1,5 @@ import { Component, ViewChild } from '@angular/core'; -import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; import { CustomFormControl, FormNodeOption, FormNodeTypes } from '@forms/services/dynamic-form.types'; diff --git a/src/app/forms/custom-sections/custom-defect/custom-defect.component.ts b/src/app/forms/custom-sections/custom-defect/custom-defect.component.ts index 1a7f74579..e3c63942a 100644 --- a/src/app/forms/custom-sections/custom-defect/custom-defect.component.ts +++ b/src/app/forms/custom-sections/custom-defect/custom-defect.component.ts @@ -1,4 +1,4 @@ -import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; +import { Component, EventEmitter, Input, Output } from '@angular/core'; import { CustomFormGroup } from '@forms/services/dynamic-form.types'; @Component({ diff --git a/src/app/forms/custom-sections/letters/letters.component.spec.ts b/src/app/forms/custom-sections/letters/letters.component.spec.ts index 05cfaa5e0..16a1f3d3c 100644 --- a/src/app/forms/custom-sections/letters/letters.component.spec.ts +++ b/src/app/forms/custom-sections/letters/letters.component.spec.ts @@ -6,7 +6,7 @@ import { RouterTestingModule } from '@angular/router/testing'; import { DynamicFormsModule } from '@forms/dynamic-forms.module'; import { createMockTrl } from '@mocks/trl-record.mock'; import { Roles } from '@models/roles.enum'; -import { approvalType, LettersIntoAuthApprovalType, LettersOfAuth, VehicleTechRecordModel } from '@models/vehicle-tech-record.model'; +import { approvalType, LettersOfAuth, VehicleTechRecordModel } from '@models/vehicle-tech-record.model'; import { StoreModule } from '@ngrx/store'; import { provideMockStore } from '@ngrx/store/testing'; import { UserService } from '@services/user-service/user-service'; diff --git a/src/app/forms/custom-sections/tyres/tyres.component.ts b/src/app/forms/custom-sections/tyres/tyres.component.ts index e3db2386c..865c46412 100644 --- a/src/app/forms/custom-sections/tyres/tyres.component.ts +++ b/src/app/forms/custom-sections/tyres/tyres.component.ts @@ -23,7 +23,7 @@ import { ReferenceDataService } from '@services/reference-data/reference-data.se import { addAxle, removeAxle } from '@store/technical-records'; import { TechnicalRecordServiceState } from '@store/technical-records/reducers/technical-record-service.reducer'; import { cloneDeep } from 'lodash'; -import { debounceTime, Subscription } from 'rxjs'; +import { Subscription } from 'rxjs'; @Component({ selector: 'app-tyres', diff --git a/src/app/forms/directives/app-trim-whitespace.directive.ts b/src/app/forms/directives/app-trim-whitespace.directive.ts index 849aa2101..ba77575d0 100644 --- a/src/app/forms/directives/app-trim-whitespace.directive.ts +++ b/src/app/forms/directives/app-trim-whitespace.directive.ts @@ -1,5 +1,4 @@ import { Directive, HostListener } from '@angular/core'; -import { NgForm } from '@angular/forms'; @Directive({ selector: '[appTrimWhitespace]' diff --git a/src/app/forms/templates/general/audit.template.ts b/src/app/forms/templates/general/audit.template.ts index 9ad541ca8..246b2c1b8 100644 --- a/src/app/forms/templates/general/audit.template.ts +++ b/src/app/forms/templates/general/audit.template.ts @@ -1,4 +1,3 @@ -import { ValidatorNames } from '@forms/models/validators.enum'; import { FormNode, FormNodeTypes, FormNodeViewTypes } from '@forms/services/dynamic-form.types'; export const Audit: FormNode = { diff --git a/src/app/forms/templates/psv/psv-body.template.ts b/src/app/forms/templates/psv/psv-body.template.ts index 4e148a4e5..a9bf9be2e 100644 --- a/src/app/forms/templates/psv/psv-body.template.ts +++ b/src/app/forms/templates/psv/psv-body.template.ts @@ -1,5 +1,5 @@ import { ValidatorNames } from '@forms/models/validators.enum'; -import { FormNode, FormNodeEditTypes, FormNodeTypes, FormNodeViewTypes, FormNodeWidth } from '../../services/dynamic-form.types'; +import { FormNode, FormNodeEditTypes, FormNodeTypes, FormNodeWidth } from '../../services/dynamic-form.types'; export const PsvBodyTemplate: FormNode = { name: 'bodySection', diff --git a/src/app/forms/templates/test-records/section-templates/test/test-section.template.ts b/src/app/forms/templates/test-records/section-templates/test/test-section.template.ts index 1fe8077c0..ef1248a1d 100644 --- a/src/app/forms/templates/test-records/section-templates/test/test-section.template.ts +++ b/src/app/forms/templates/test-records/section-templates/test/test-section.template.ts @@ -1,6 +1,5 @@ import { ValidatorNames } from '@forms/models/validators.enum'; import { FormNode, FormNodeEditTypes, FormNodeTypes, FormNodeViewTypes, FormNodeWidth } from '@forms/services/dynamic-form.types'; -import { ReferenceDataResourceType } from '@models/reference-data.model'; export const TestSection: FormNode = { name: 'testSection', diff --git a/src/app/forms/templates/test-records/section-templates/vehicle/desk-based-vehicle-section-group5-lgv.template.ts b/src/app/forms/templates/test-records/section-templates/vehicle/desk-based-vehicle-section-group5-lgv.template.ts index 824984e05..67828cb29 100644 --- a/src/app/forms/templates/test-records/section-templates/vehicle/desk-based-vehicle-section-group5-lgv.template.ts +++ b/src/app/forms/templates/test-records/section-templates/vehicle/desk-based-vehicle-section-group5-lgv.template.ts @@ -1,4 +1,3 @@ -import { ValidatorNames } from '@forms/models/validators.enum'; import { FormNode, FormNodeEditTypes, FormNodeTypes, FormNodeViewTypes, FormNodeWidth } from '@forms/services/dynamic-form.types'; import { getOptionsFromEnum } from '@forms/utils/enum-map'; import { ReferenceDataResourceType } from '@models/reference-data.model'; diff --git a/src/app/forms/templates/trl/trl-purchaser.template.ts b/src/app/forms/templates/trl/trl-purchaser.template.ts index fa478aefd..f549c77de 100644 --- a/src/app/forms/templates/trl/trl-purchaser.template.ts +++ b/src/app/forms/templates/trl/trl-purchaser.template.ts @@ -1,5 +1,5 @@ import { ValidatorNames } from '@forms/models/validators.enum'; -import { FormNode, FormNodeEditTypes, FormNodeTypes, FormNodeViewTypes, FormNodeWidth } from '../../services/dynamic-form.types'; +import { FormNode, FormNodeEditTypes, FormNodeTypes, FormNodeWidth } from '../../services/dynamic-form.types'; export const TrlPurchasers: FormNode = { name: 'purchaserSection', diff --git a/src/app/models/reference-data.model.ts b/src/app/models/reference-data.model.ts index ed1556e9a..3f7ff3bfc 100644 --- a/src/app/models/reference-data.model.ts +++ b/src/app/models/reference-data.model.ts @@ -1,5 +1,3 @@ -import { isNgTemplate } from '@angular/compiler'; - export enum ReferenceDataResourceType { Brakes = 'BRAKES', CountryOfRegistration = 'COUNTRY_OF_REGISTRATION', diff --git a/src/app/resolvers/test-result/test-result.resolver.spec.ts b/src/app/resolvers/test-result/test-result.resolver.spec.ts index 48a3b26d0..c605d1908 100644 --- a/src/app/resolvers/test-result/test-result.resolver.spec.ts +++ b/src/app/resolvers/test-result/test-result.resolver.spec.ts @@ -5,9 +5,7 @@ import { provideMockActions } from '@ngrx/effects/testing'; import { Action } from '@ngrx/store'; import { MockStore, provideMockStore } from '@ngrx/store/testing'; import { initialAppState, State } from '@store/.'; -import { fetchDefectsFailed, fetchDefectsSuccess } from '@store/defects'; import { fetchSelectedTestResult, fetchSelectedTestResultFailed, fetchSelectedTestResultSuccess, selectedTestResultState } from '@store/test-records'; -import { fetchTestTypesSuccess } from '@store/test-types/actions/test-types.actions'; import { Observable } from 'rxjs'; import { TestScheduler } from 'rxjs/testing'; import { TestResultResolver } from './test-result.resolver'; diff --git a/src/app/services/batch-technical-record/batch-technical-record.service.spec.ts b/src/app/services/batch-technical-record/batch-technical-record.service.spec.ts index 6e6ca80d8..5186aa6c9 100644 --- a/src/app/services/batch-technical-record/batch-technical-record.service.spec.ts +++ b/src/app/services/batch-technical-record/batch-technical-record.service.spec.ts @@ -1,5 +1,5 @@ import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; -import { TestBed, async } from '@angular/core/testing'; +import { TestBed } from '@angular/core/testing'; import { FormControl, FormGroup, ValidationErrors } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; import { CustomFormControl, FormNodeTypes } from '@forms/services/dynamic-form.types'; @@ -8,7 +8,6 @@ import { provideMockStore } from '@ngrx/store/testing'; import { TechnicalRecordHttpService } from '@services/technical-record-http/technical-record-http.service'; import { TechnicalRecordService } from '@services/technical-record/technical-record.service'; import { initialAppState } from '@store/index'; -import cloneDeep from 'lodash.clonedeep'; import { firstValueFrom, Observable, of } from 'rxjs'; import { BatchTechnicalRecordService } from './batch-technical-record.service'; import { SearchResult } from '@store/tech-record-search/reducer/tech-record-search.reducer'; diff --git a/src/app/services/result-of-test/result-of-test.service.spec.ts b/src/app/services/result-of-test/result-of-test.service.spec.ts index 2c5a56d4c..1e44af7ea 100644 --- a/src/app/services/result-of-test/result-of-test.service.spec.ts +++ b/src/app/services/result-of-test/result-of-test.service.spec.ts @@ -3,7 +3,6 @@ import { resultOfTestEnum } from '@models/test-types/test-type.model'; import { MockStore, provideMockStore } from '@ngrx/store/testing'; import { initialAppState, State } from '@store/.'; import { resultOfTestSelector } from '@store/test-records'; -import { of } from 'rxjs'; import { ResultOfTestService } from './result-of-test.service'; diff --git a/src/app/services/result-of-test/result-of-test.service.ts b/src/app/services/result-of-test/result-of-test.service.ts index f8947f36c..0f038188b 100644 --- a/src/app/services/result-of-test/result-of-test.service.ts +++ b/src/app/services/result-of-test/result-of-test.service.ts @@ -2,8 +2,8 @@ import { Injectable } from '@angular/core'; import { resultOfTestEnum } from '@models/test-types/test-type.model'; import { select, Store } from '@ngrx/store'; import { State } from '@store/.'; -import { resultOfTestSelector, setResultOfTest, testResultInEdit, updateResultOfTest } from '@store/test-records'; -import { Observable, take } from 'rxjs'; +import { resultOfTestSelector, setResultOfTest, updateResultOfTest } from '@store/test-records'; +import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' diff --git a/src/app/services/test-records/test-records.service.spec.ts b/src/app/services/test-records/test-records.service.spec.ts index ba5faebc0..2bb62f6bd 100644 --- a/src/app/services/test-records/test-records.service.spec.ts +++ b/src/app/services/test-records/test-records.service.spec.ts @@ -1,11 +1,10 @@ import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import { TestBed } from '@angular/core/testing'; -import { GetTestResultsService, UpdateTestResultsService, DefaultService as CreateTestResultsService, DefaultService } from '@api/test-results'; +import { GetTestResultsService, UpdateTestResultsService, DefaultService as CreateTestResultsService } from '@api/test-results'; import { TestResultModel } from '@models/test-results/test-result.model'; import { MockStore, provideMockStore } from '@ngrx/store/testing'; import { initialAppState, State } from '@store/.'; import { createTestResult, fetchTestResults, fetchTestResultsBySystemNumber, toEditOrNotToEdit, updateTestResult } from '@store/test-records'; -import { of } from 'rxjs'; import { mockTestResult } from '../../../mocks/mock-test-result'; import { TestRecordsService } from './test-records.service'; diff --git a/src/app/shared/components/input-spinner/input-spinner.component.ts b/src/app/shared/components/input-spinner/input-spinner.component.ts index 62e9f0768..2ff38467c 100644 --- a/src/app/shared/components/input-spinner/input-spinner.component.ts +++ b/src/app/shared/components/input-spinner/input-spinner.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, OnInit } from '@angular/core'; +import { Component, Input } from '@angular/core'; @Component({ selector: 'app-input-spinner', diff --git a/src/app/shared/pipes/get-control-label/get-control-label.pipe.spec.ts b/src/app/shared/pipes/get-control-label/get-control-label.pipe.spec.ts index e3ca4c6d7..11aca9662 100644 --- a/src/app/shared/pipes/get-control-label/get-control-label.pipe.spec.ts +++ b/src/app/shared/pipes/get-control-label/get-control-label.pipe.spec.ts @@ -1,5 +1,5 @@ import { GetControlLabelPipe } from './get-control-label.pipe'; -import { FormNode, FormNodeOption } from '@forms/services/dynamic-form.types'; +import { FormNodeOption } from '@forms/services/dynamic-form.types'; describe('GetControlLabelPipe', () => { let testOptions: FormNodeOption[]; diff --git a/src/app/shared/pipes/get-control-label/get-control-label.pipe.ts b/src/app/shared/pipes/get-control-label/get-control-label.pipe.ts index 12c4a0c9c..ef54c9bcf 100644 --- a/src/app/shared/pipes/get-control-label/get-control-label.pipe.ts +++ b/src/app/shared/pipes/get-control-label/get-control-label.pipe.ts @@ -1,7 +1,6 @@ import { Pipe, PipeTransform } from '@angular/core'; import { FormNodeCombinationOptions } from '@forms/services/dynamic-form.types'; -import { FormNode, FormNodeOption } from '@forms/services/dynamic-form.types'; -import { option } from 'yargs'; +import { FormNodeOption } from '@forms/services/dynamic-form.types'; @Pipe({ name: 'getControlLabel' diff --git a/src/app/store/defects/selectors/defects.selectors.spec.ts b/src/app/store/defects/selectors/defects.selectors.spec.ts index 5aa010ca8..bdf7664c4 100644 --- a/src/app/store/defects/selectors/defects.selectors.spec.ts +++ b/src/app/store/defects/selectors/defects.selectors.spec.ts @@ -4,7 +4,7 @@ import { Deficiency } from '@models/defects/deficiency.model'; import { Item } from '@models/defects/item.model'; import { VehicleTypes } from '@models/vehicle-tech-record.model'; import { DefectsState, initialDefectsState } from '../reducers/defects.reducer'; -import { defect, defects, defectsLoadingState, filteredDefects, selectByDeficiencyRef, selectByImNumber } from './defects.selectors'; +import { defect, defects, defectsLoadingState, selectByDeficiencyRef, selectByImNumber } from './defects.selectors'; describe('Defects Selectors', () => { describe('adapter selectors', () => { diff --git a/src/app/store/global-error/reducers/global-error-service.reducer.spec.ts b/src/app/store/global-error/reducers/global-error-service.reducer.spec.ts index 0e9e405c8..f41a0f846 100644 --- a/src/app/store/global-error/reducers/global-error-service.reducer.spec.ts +++ b/src/app/store/global-error/reducers/global-error-service.reducer.spec.ts @@ -2,7 +2,7 @@ import { routerNavigatedAction, RouterNavigatedPayload, SerializedRouterStateSna import { globalErrorReducer, GlobalErrorState, initialGlobalErrorState } from '@store/global-error/reducers/global-error-service.reducer'; import { fetchTestResults, fetchTestResultsBySystemNumber, fetchTestResultsBySystemNumberFailed, fetchTestResultsFailed } from '@store/test-records'; import { patchErrors, setErrors } from '../actions/global-error.actions'; -import { fetchSearchResult, fetchSearchResultFailed } from '@store/tech-record-search/actions/tech-record-search.actions'; +import { fetchSearchResultFailed } from '@store/tech-record-search/actions/tech-record-search.actions'; describe('Global Error Reducer', () => { describe('unknown action', () => { diff --git a/src/app/store/reference-data/actions/reference-data.actions.ts b/src/app/store/reference-data/actions/reference-data.actions.ts index e91f45347..fc827467c 100644 --- a/src/app/store/reference-data/actions/reference-data.actions.ts +++ b/src/app/store/reference-data/actions/reference-data.actions.ts @@ -1,4 +1,3 @@ -import { DeleteItem, ReferenceDataItem } from '@api/reference-data'; import { GlobalError } from '@core/components/global-error/global-error.interface'; import { ReferenceDataModelBase, ReferenceDataResourceType } from '@models/reference-data.model'; import { createAction, props } from '@ngrx/store'; diff --git a/src/app/store/reference-data/effects/reference-data.effects.spec.ts b/src/app/store/reference-data/effects/reference-data.effects.spec.ts index 7034dcb44..f06d9c1ea 100644 --- a/src/app/store/reference-data/effects/reference-data.effects.spec.ts +++ b/src/app/store/reference-data/effects/reference-data.effects.spec.ts @@ -1,6 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { TestBed } from '@angular/core/testing'; -import { DeleteItem, EmptyObject, ReferenceDataItem } from '@api/reference-data'; +import { DeleteItem, ReferenceDataItem } from '@api/reference-data'; import { ReferenceDataModelBase, ReferenceDataResourceType } from '@models/reference-data.model'; import { TestResultModel } from '@models/test-results/test-result.model'; import { VehicleTypes } from '@models/vehicle-tech-record.model'; diff --git a/src/app/store/reference-data/effects/reference-data.effects.ts b/src/app/store/reference-data/effects/reference-data.effects.ts index 04d6f6fd7..12137e29f 100644 --- a/src/app/store/reference-data/effects/reference-data.effects.ts +++ b/src/app/store/reference-data/effects/reference-data.effects.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { DeleteItem, EmptyObject, ReferenceDataApiResponse, ReferenceDataApiResponseWithPagination } from '@api/reference-data'; +import { DeleteItem, ReferenceDataApiResponse, ReferenceDataApiResponseWithPagination } from '@api/reference-data'; import { ReferenceDataModelBase, ReferenceDataResourceType } from '@models/reference-data.model'; import { VehicleTypes } from '@models/vehicle-tech-record.model'; import { Actions, createEffect, ofType } from '@ngrx/effects'; @@ -8,7 +8,7 @@ import { ReferenceDataService } from '@services/reference-data/reference-data.se import { UserService } from '@services/user-service/user-service'; import { State } from '@store/.'; import { testResultInEdit } from '@store/test-records'; -import { catchError, map, mergeMap, of, switchMap, take, withLatestFrom } from 'rxjs'; +import { catchError, map, mergeMap, of, switchMap, take } from 'rxjs'; import { amendReferenceDataItem, amendReferenceDataItemFailure, diff --git a/src/app/store/tech-record-search/effects/tech-record-search.effect.spec.ts b/src/app/store/tech-record-search/effects/tech-record-search.effect.spec.ts index 118f82eae..c1b768411 100644 --- a/src/app/store/tech-record-search/effects/tech-record-search.effect.spec.ts +++ b/src/app/store/tech-record-search/effects/tech-record-search.effect.spec.ts @@ -1,7 +1,6 @@ import { SEARCH_TYPES, TechnicalRecordHttpService } from '@services/technical-record-http/technical-record-http.service'; import { fetchSearchResult, fetchSearchResultFailed, fetchSearchResultSuccess } from '../actions/tech-record-search.actions'; import { TechSearchResultsEffects } from './tech-record-search.effect'; -import { fetchDefectSuccess } from '@store/defects'; import { SearchResult } from '../reducer/tech-record-search.reducer'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { Action } from '@ngrx/store'; diff --git a/src/app/store/tech-record-search/reducer/tech-record-search.reducer.ts b/src/app/store/tech-record-search/reducer/tech-record-search.reducer.ts index adcb4618d..5bff63af6 100644 --- a/src/app/store/tech-record-search/reducer/tech-record-search.reducer.ts +++ b/src/app/store/tech-record-search/reducer/tech-record-search.reducer.ts @@ -1,7 +1,6 @@ import { EntityAdapter, EntityState, createEntityAdapter } from '@ngrx/entity'; import { createFeatureSelector, createReducer, on } from '@ngrx/store'; import { fetchSearchResult, fetchSearchResultFailed, fetchSearchResultSuccess } from '../actions/tech-record-search.actions'; -import { GlobalError } from '@core/components/global-error/global-error.interface'; export interface SearchResult { systemNumber: string; diff --git a/src/app/store/technical-records/selectors/technical-record-service.selectors.spec.ts b/src/app/store/technical-records/selectors/technical-record-service.selectors.spec.ts index cec6cb86c..720515594 100644 --- a/src/app/store/technical-records/selectors/technical-record-service.selectors.spec.ts +++ b/src/app/store/technical-records/selectors/technical-record-service.selectors.spec.ts @@ -1,9 +1,8 @@ -import { TechRecordModel, VehicleTechRecordModel } from '@models/vehicle-tech-record.model'; -import { createMock, createMockList } from 'ts-auto-mock'; +import { VehicleTechRecordModel } from '@models/vehicle-tech-record.model'; +import { createMock } from 'ts-auto-mock'; import { initialState, TechnicalRecordServiceState } from '../reducers/technical-record-service.reducer'; import { getSingleVehicleType, - selectTechRecord, selectVehicleTechnicalRecordsBySystemNumber, technicalRecordsLoadingState, vehicleTechRecords, diff --git a/src/app/store/technical-records/selectors/technical-record-service.selectors.ts b/src/app/store/technical-records/selectors/technical-record-service.selectors.ts index 0552cbea4..57b237f7b 100644 --- a/src/app/store/technical-records/selectors/technical-record-service.selectors.ts +++ b/src/app/store/technical-records/selectors/technical-record-service.selectors.ts @@ -1,7 +1,6 @@ import { createSelector } from '@ngrx/store'; import { selectRouteDataProperty, selectRouteNestedParams, selectUrl } from '@store/router/selectors/router.selectors'; import { getVehicleTechRecordState } from '../reducers/technical-record-service.reducer'; -import { selectQueryParams, selectRouteData } from '@store/router/selectors/router.selectors'; import { StatusCodes, TechRecordModel } from '@models/vehicle-tech-record.model'; import { TechnicalRecordService } from '@services/technical-record/technical-record.service'; diff --git a/src/app/store/test-records/effects/test-records.effects.spec.ts b/src/app/store/test-records/effects/test-records.effects.spec.ts index 81c073486..4f8d4aa8d 100644 --- a/src/app/store/test-records/effects/test-records.effects.spec.ts +++ b/src/app/store/test-records/effects/test-records.effects.spec.ts @@ -1,7 +1,6 @@ import { HttpErrorResponse } from '@angular/common/http'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { TestBed } from '@angular/core/testing'; -import { Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { ApiModule as TestResultsApiModule } from '@api/test-results'; import { GlobalError } from '@core/components/global-error/global-error.interface'; @@ -18,7 +17,6 @@ import { provideMockActions } from '@ngrx/effects/testing'; import { Action } from '@ngrx/store'; import { MockStore, provideMockStore } from '@ngrx/store/testing'; import { RouterService } from '@services/router/router.service'; -import { TechnicalRecordService } from '@services/technical-record/technical-record.service'; import { TestRecordsService } from '@services/test-records/test-records.service'; import { UserService } from '@services/user-service/user-service'; import { initialAppState, State } from '@store/.';