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 2bcdbaf commit aa39154
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions projects/ngx-highlightjs/src/lib/highlight.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { HighlightLibrary } from './highlight.model';

@Component({
template: `<code [highlight]="code"></code>`,
standalone: true
standalone: true,
imports: [Highlight]
})
class TestHighlightComponent implements OnInit {
@Input() code: string;
Expand All @@ -32,7 +33,7 @@ describe('Highlight Directive', () => {
const testJsCode = 'console.log(&quot;test&quot;)';
const testHtmlCode = '<div class=&quot;my-class&quot;></div>';

beforeEach(waitForAsync(() => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [Highlight, TestHighlightComponent],
providers: [
Expand All @@ -41,9 +42,7 @@ 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 aa39154

Please sign in to comment.