From 40eee41b9e00490ebc3143954b630802f975682b Mon Sep 17 00:00:00 2001 From: griest024 Date: Mon, 13 May 2024 22:45:51 -0400 Subject: [PATCH] feat(all): simplify and remove redundant generics (#2791) --- libs/contact/driver/in-memory/src/contact.service.spec.ts | 2 +- libs/customer/state/src/effects/customer.effects.spec.ts | 2 +- libs/design/modal/src/service/specs/modal.service.spec.ts | 2 +- libs/design/modal/src/service/specs/multiple-modal.spec.ts | 2 +- .../driver/in-memory/src/in-memory.service.spec.ts | 2 +- .../driver/testing/src/testing.service.spec.ts | 2 +- .../external-router/routing/src/guard/existence.guard.spec.ts | 4 ++-- .../routing/src/helper/convert-to-path.spec.ts | 2 +- libs/external-router/src/router/router.service.spec.ts | 4 ++-- .../src/transform/resolved-route-to-route.spec.ts | 2 +- libs/geography/state/src/effects/geography.effects.spec.ts | 2 +- .../driver/in-memory/src/drivers/newsletter.service.spec.ts | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/libs/contact/driver/in-memory/src/contact.service.spec.ts b/libs/contact/driver/in-memory/src/contact.service.spec.ts index a435980dbc..2c6b8093cd 100644 --- a/libs/contact/driver/in-memory/src/contact.service.spec.ts +++ b/libs/contact/driver/in-memory/src/contact.service.spec.ts @@ -22,7 +22,7 @@ describe('The DaffInMemoryContactService', () => { ], }); httpMock = TestBed.inject(HttpTestingController); - contactService = TestBed.inject(DaffInMemoryContactService); + contactService = TestBed.inject(DaffInMemoryContactService); }); afterEach(() => { diff --git a/libs/customer/state/src/effects/customer.effects.spec.ts b/libs/customer/state/src/effects/customer.effects.spec.ts index 7ab7c823c6..53ed277c39 100644 --- a/libs/customer/state/src/effects/customer.effects.spec.ts +++ b/libs/customer/state/src/effects/customer.effects.spec.ts @@ -62,7 +62,7 @@ describe('@daffodil/customer/state | DaffCustomerEffects', () => { effects = TestBed.inject>(DaffCustomerEffects); daffDriver = TestBed.inject(DaffCustomerDriver); - customerFactory = TestBed.inject(DaffCustomerFactory); + customerFactory = TestBed.inject(DaffCustomerFactory); mockCustomer = customerFactory.create(); diff --git a/libs/design/modal/src/service/specs/modal.service.spec.ts b/libs/design/modal/src/service/specs/modal.service.spec.ts index 9f24a9725b..8a2d26cc80 100644 --- a/libs/design/modal/src/service/specs/modal.service.spec.ts +++ b/libs/design/modal/src/service/specs/modal.service.spec.ts @@ -49,7 +49,7 @@ describe('@daffodil/design/modal | DaffModalService', () => { beforeEach(() => { service = TestBed.inject(DaffModalService); - overlayContainer = TestBed.inject(OverlayContainer); + overlayContainer = TestBed.inject(OverlayContainer); overlayContainerElement = overlayContainer.getContainerElement(); fixture = TestBed.createComponent(WrapperComponent); fixture.detectChanges(); diff --git a/libs/design/modal/src/service/specs/multiple-modal.spec.ts b/libs/design/modal/src/service/specs/multiple-modal.spec.ts index 8cb6dc4c61..f8c3ac80ba 100644 --- a/libs/design/modal/src/service/specs/multiple-modal.spec.ts +++ b/libs/design/modal/src/service/specs/multiple-modal.spec.ts @@ -56,7 +56,7 @@ describe('@daffodil/design/modal | DaffModalService', () => { }).compileComponents(); modalService = TestBed.inject(DaffModalService); - overlayContainer = TestBed.inject(OverlayContainer); + overlayContainer = TestBed.inject(OverlayContainer); overlayContainerElement = overlayContainer.getContainerElement(); fixture = TestBed.createComponent(WrapperComponent); fixture.detectChanges(); diff --git a/libs/external-router/driver/in-memory/src/in-memory.service.spec.ts b/libs/external-router/driver/in-memory/src/in-memory.service.spec.ts index dd383d5f4b..5cbd24ee42 100644 --- a/libs/external-router/driver/in-memory/src/in-memory.service.spec.ts +++ b/libs/external-router/driver/in-memory/src/in-memory.service.spec.ts @@ -20,7 +20,7 @@ describe('@daffodil/external-router/driver/in-memory | DaffExternalRouterInMemor TestBed.configureTestingModule({ imports: [DaffExternalRouterDriverInMemoryModule.forRoot(configuration)], }); - service = TestBed.inject(DaffExternalRouterInMemoryDriver); + service = TestBed.inject(DaffExternalRouterInMemoryDriver); scheduler = new TestScheduler((actual, expected) => { expect(actual).toEqual(expected); diff --git a/libs/external-router/driver/testing/src/testing.service.spec.ts b/libs/external-router/driver/testing/src/testing.service.spec.ts index db1b1a4927..1bf0692963 100644 --- a/libs/external-router/driver/testing/src/testing.service.spec.ts +++ b/libs/external-router/driver/testing/src/testing.service.spec.ts @@ -15,7 +15,7 @@ describe('@daffodil/external-router/driver/testing | DaffExternalRouterTestingDr TestBed.configureTestingModule({ imports: [DaffExternalRouterDriverTestingModule.forRoot(configuration)], }); - service = TestBed.inject(DaffExternalRouterTestingDriver); + service = TestBed.inject(DaffExternalRouterTestingDriver); scheduler = new TestScheduler((actual, expected) => { expect(actual).toEqual(expected); diff --git a/libs/external-router/routing/src/guard/existence.guard.spec.ts b/libs/external-router/routing/src/guard/existence.guard.spec.ts index 12ffe85ea0..4d0bd4eada 100644 --- a/libs/external-router/routing/src/guard/existence.guard.spec.ts +++ b/libs/external-router/routing/src/guard/existence.guard.spec.ts @@ -51,8 +51,8 @@ describe('@daffodil/external-router/routing | DaffExternalRouterExistenceGuard', ]), ], }); - router = TestBed.inject(Router); - guard = TestBed.inject(DaffExternalRouterExistenceGuard); + router = TestBed.inject(Router); + guard = TestBed.inject(DaffExternalRouterExistenceGuard); driver = TestBed.inject(DaffExternalRouterDriver); }); diff --git a/libs/external-router/routing/src/helper/convert-to-path.spec.ts b/libs/external-router/routing/src/helper/convert-to-path.spec.ts index 52bb556489..a6256d9d80 100644 --- a/libs/external-router/routing/src/helper/convert-to-path.spec.ts +++ b/libs/external-router/routing/src/helper/convert-to-path.spec.ts @@ -15,7 +15,7 @@ describe('@daffodil/external-router | daffConvertToPath', () => { imports: [RouterTestingModule], }); - router = TestBed.inject(Router); + router = TestBed.inject(Router); }); it('convert a segments array to a path', () => { diff --git a/libs/external-router/src/router/router.service.spec.ts b/libs/external-router/src/router/router.service.spec.ts index 3f6b5a68ef..f4ca3bc2b4 100644 --- a/libs/external-router/src/router/router.service.spec.ts +++ b/libs/external-router/src/router/router.service.spec.ts @@ -29,8 +29,8 @@ describe('@daffodil/external-router | DaffExternalRouter', () => { TestBed.overrideProvider(DAFF_EXTERNAL_ROUTER_ROUTES_RESOLVABLE_BY_TYPE, { useValue: types, }); - service = TestBed.inject(DaffExternalRouter); - router = TestBed.inject(Router); + service = TestBed.inject(DaffExternalRouter); + router = TestBed.inject(Router); }; it('should be created', () => { diff --git a/libs/external-router/src/transform/resolved-route-to-route.spec.ts b/libs/external-router/src/transform/resolved-route-to-route.spec.ts index 09bacdf44e..1fd8973da7 100644 --- a/libs/external-router/src/transform/resolved-route-to-route.spec.ts +++ b/libs/external-router/src/transform/resolved-route-to-route.spec.ts @@ -13,7 +13,7 @@ describe('@daffodil/external-router | daffTransformResolvedRouteToRoute', () => imports: [RouterTestingModule], }); - router = TestBed.inject(Router); + router = TestBed.inject(Router); }); it('transforms a DaffExternallyResolvableUrl into an Angular route.', () => { diff --git a/libs/geography/state/src/effects/geography.effects.spec.ts b/libs/geography/state/src/effects/geography.effects.spec.ts index 2d71ea45fe..54376faa3c 100644 --- a/libs/geography/state/src/effects/geography.effects.spec.ts +++ b/libs/geography/state/src/effects/geography.effects.spec.ts @@ -55,7 +55,7 @@ describe('Daffodil | Geography | GeographyEffects', () => { effects = TestBed.inject>(DaffGeographyEffects); daffDriver = TestBed.inject(DaffGeographyDriver); - countryFactory = TestBed.inject(DaffCountryFactory); + countryFactory = TestBed.inject(DaffCountryFactory); mockCountry = countryFactory.create(); countryId = mockCountry.id; diff --git a/libs/newsletter/driver/in-memory/src/drivers/newsletter.service.spec.ts b/libs/newsletter/driver/in-memory/src/drivers/newsletter.service.spec.ts index ed5486f6f7..a1c18e3873 100644 --- a/libs/newsletter/driver/in-memory/src/drivers/newsletter.service.spec.ts +++ b/libs/newsletter/driver/in-memory/src/drivers/newsletter.service.spec.ts @@ -24,7 +24,7 @@ describe('Driver | InMemory | Newsletter | NewsletterService', () => { ], }); httpMock = TestBed.inject(HttpTestingController); - newsletterService = TestBed.inject(DaffInMemoryNewsletterService); + newsletterService = TestBed.inject(DaffInMemoryNewsletterService); }); afterEach(() => {