From 31008d133ff8d20b995f7d05f80703a8fd2524d9 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 4 Dec 2023 22:58:21 -0800 Subject: [PATCH] 100% coverage --- .../input/document-link/document-link.component.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/common/input/document-link/document-link.component.spec.ts b/src-ui/src/app/components/common/input/document-link/document-link.component.spec.ts index 27b20b55e..d1af7ab2f 100644 --- a/src-ui/src/app/components/common/input/document-link/document-link.component.spec.ts +++ b/src-ui/src/app/components/common/input/document-link/document-link.component.spec.ts @@ -1,6 +1,10 @@ import { HttpClientTestingModule } from '@angular/common/http/testing' import { ComponentFixture, TestBed } from '@angular/core/testing' -import { FormsModule, ReactiveFormsModule } from '@angular/forms' +import { + FormsModule, + NG_VALUE_ACCESSOR, + ReactiveFormsModule, +} from '@angular/forms' import { NgSelectModule } from '@ng-select/ng-select' import { of, throwError } from 'rxjs' import { DocumentService } from 'src/app/services/rest/document.service' @@ -39,6 +43,7 @@ describe('DocumentLinkComponent', () => { }) documentService = TestBed.inject(DocumentService) fixture = TestBed.createComponent(DocumentLinkComponent) + fixture.debugElement.injector.get(NG_VALUE_ACCESSOR) component = fixture.componentInstance fixture.detectChanges() })