From 2781e62281042cd1c0817bfafa7b3829372a64de Mon Sep 17 00:00:00 2001 From: Brandon Thomas-Davies <87308252+BrandonT95@users.noreply.github.com> Date: Mon, 15 Apr 2024 12:16:37 +0100 Subject: [PATCH] fix(cb2-9747): fix failing unit test --- .../adr-new-certificate-required-view.component.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/forms/custom-sections/adr-new-certificate-required-view/adr-new-certificate-required-view.component.spec.ts b/src/app/forms/custom-sections/adr-new-certificate-required-view/adr-new-certificate-required-view.component.spec.ts index 63e0703123..88ca0a36d5 100644 --- a/src/app/forms/custom-sections/adr-new-certificate-required-view/adr-new-certificate-required-view.component.spec.ts +++ b/src/app/forms/custom-sections/adr-new-certificate-required-view/adr-new-certificate-required-view.component.spec.ts @@ -6,6 +6,7 @@ import { provideMockStore } from '@ngrx/store/testing'; import { State, initialAppState } from '@store/index'; import { AdrTankDetailsM145ViewComponent } from '../adr-tank-details-m145-view/adr-tank-details-m145-view.component'; import { AdrNewCertificateRequiredViewComponent } from './adr-new-certificate-required-view.component'; +import { SharedModule } from '@shared/shared.module'; describe('AdrNewCertificateRequiredViewComponent', () => { let component: AdrNewCertificateRequiredViewComponent; @@ -19,7 +20,8 @@ describe('AdrNewCertificateRequiredViewComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [AdrNewCertificateRequiredViewComponent], + declarations: [AdrNewCertificateRequiredViewComponent], + imports: [SharedModule], providers: [ provideMockStore({ initialState: initialAppState }), { provide: NG_VALUE_ACCESSOR, useExisting: AdrTankDetailsM145ViewComponent, multi: true },