diff --git a/postrify-frontend/src/app/pipes/bold-text.pipe.spec.ts b/postrify-frontend/src/app/pipes/bold-text.pipe.spec.ts index e137b1f..c748be4 100644 --- a/postrify-frontend/src/app/pipes/bold-text.pipe.spec.ts +++ b/postrify-frontend/src/app/pipes/bold-text.pipe.spec.ts @@ -1,8 +1,19 @@ import { BoldTextPipe } from './bold-text.pipe'; +import { DomSanitizer } from '@angular/platform-browser'; +import { TestBed } from '@angular/core/testing'; describe('BoldTextPipe', () => { + let sanitizer: DomSanitizer; + + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [DomSanitizer], + }); + sanitizer = TestBed.inject(DomSanitizer); + }); + it('create an instance', () => { - const pipe = new BoldTextPipe(); + const pipe = new BoldTextPipe(sanitizer); expect(pipe).toBeTruthy(); }); });