import { TestBed } from '@angular/core/testing' import { SafeHtmlPipe } from './safehtml.pipe' import { BrowserModule, DomSanitizer } from '@angular/platform-browser' describe('SafeHtmlPipe', () => { let pipe: SafeHtmlPipe beforeEach(() => { TestBed.configureTestingModule({ providers: [SafeHtmlPipe], imports: [BrowserModule], }) pipe = TestBed.inject(SafeHtmlPipe) }) it('should bypass security and trust the url', () => { const html = '