Skip to content

Commit

Permalink
Make test happy again!
Browse files Browse the repository at this point in the history
  • Loading branch information
MurhafSousli committed Jun 25, 2023
1 parent 891b654 commit a5a3635
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/ngx-highlightjs/src/lib/highlight.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Highlight Directive', () => {
const testJsCode = 'console.log("test")';
const testHtmlCode = '<div class=&quot;my-class&quot;></div>';

beforeEach(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [Highlight, TestHighlightComponent],
providers: [
Expand All @@ -42,7 +42,9 @@ describe('Highlight Directive', () => {
]
}).compileComponents();
loader = TestBed.inject(HighlightLoader);
}));

beforeEach(() => {
fixture = TestBed.createComponent(TestHighlightComponent);
component = fixture.componentInstance;
directiveElement = fixture.debugElement.query(By.directive(Highlight));
Expand Down

0 comments on commit a5a3635

Please sign in to comment.