Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbush committed Oct 5, 2024
1 parent d3f117b commit cd7c17a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion postrify-frontend/src/app/pipes/bold-text.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -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();
});
});

0 comments on commit cd7c17a

Please sign in to comment.