From cb2f89c0cdf705e64e5dfc77d0578d3e1d970a5e Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Fri, 6 Sep 2024 22:17:36 +0200 Subject: [PATCH] Fix incomplete multi-character sanitization --- .../src/lib/modules/avatar/component/avatar.component.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/natural/src/lib/modules/avatar/component/avatar.component.spec.ts b/projects/natural/src/lib/modules/avatar/component/avatar.component.spec.ts index 495efbca..0db4c1ff 100644 --- a/projects/natural/src/lib/modules/avatar/component/avatar.component.spec.ts +++ b/projects/natural/src/lib/modules/avatar/component/avatar.component.spec.ts @@ -48,7 +48,7 @@ describe('NaturalAvatarComponent', () => { fixture.detectChanges(); const avatarTextEl = fixture.debugElement.query(By.css('.avatar-container')); - expect(avatarTextEl.nativeElement.innerHTML.replace(//gs, '')).toBe(''); + expect(avatarTextEl.nativeElement.innerHTML).toBe(''); }); it('should not try again failed sources', () => {