import { MarkdownPipe } from './markdown.pipe'; import { TestBed } from '@angular/core/testing'; import { APP_CONFIG } from '../../../config/app-config.interface'; import { environment } from '../../../environments/environment'; describe('Markdown Pipe', () => { let markdownPipe: MarkdownPipe; beforeEach(() => { TestBed.configureTestingModule({ providers: [ MarkdownPipe, { provide: APP_CONFIG, useValue: Object.assign(environment, { enableMarkdown: true, enableMathjax: true, }) }, ], }).compileComponents(); markdownPipe = TestBed.inject(MarkdownPipe); }); it('should render markdown', async () => { await testTransform( '# Header', '