From f4cf5209301bed2beec7b1f2635e46bb56bd7634 Mon Sep 17 00:00:00 2001 From: Camille Moinier Date: Fri, 19 Jan 2024 15:35:15 +0100 Subject: [PATCH] feat(dh): fix unit test --- .../ui/elements/src/lib/metadata-info/linkify.directive.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ui/elements/src/lib/metadata-info/linkify.directive.spec.ts b/libs/ui/elements/src/lib/metadata-info/linkify.directive.spec.ts index d8b4b82c5b..b2ee24948f 100644 --- a/libs/ui/elements/src/lib/metadata-info/linkify.directive.spec.ts +++ b/libs/ui/elements/src/lib/metadata-info/linkify.directive.spec.ts @@ -148,7 +148,7 @@ describe('GnUiLinkifyDirective', () => { fixture.detectChanges() await fixture.whenStable() const href = getAnchorElement()[0].nativeElement.getAttribute('href') - const matIcon = getAnchorElement()[0].nativeElement.childNodes[0] + const matIcon = getAnchorElement()[0].nativeElement.childNodes[1] expect(href).toBe(testWithHTML.output) expect(matIcon.nodeName).toContain('MAT-ICON') })