Skip to content

Commit

Permalink
Fix incomplete multi-character sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Sep 6, 2024
1 parent fe40a06 commit cb2f89c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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('<!--container--><!--container-->');
});

it('should not try again failed sources', () => {
Expand Down

0 comments on commit cb2f89c

Please sign in to comment.