Skip to content

Commit c8f0c1f

Browse files
committed
chore: fix test
1 parent cbee382 commit c8f0c1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/spec/directive.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import { Component } from '@angular/core';
22
import { ComponentFixture, TestBed } from '@angular/core/testing';
33

4-
import { HighlightJsModule } from '../src/highlight-js.module';
54
import { DOCUMENT } from '@angular/common';
5+
import { HighlightJsDirective } from 'lib/public-api';
66

77
describe('Component: ngx-highlight-js', () => {
88
let fixture: ComponentFixture<any>;
99
let context: TestComponent;
1010

1111
beforeEach(() => {
1212
TestBed.configureTestingModule({
13-
declarations: [TestComponent],
14-
imports: [HighlightJsModule],
13+
imports: [TestComponent],
1514
});
1615
});
1716

@@ -47,5 +46,6 @@ describe('Component: ngx-highlight-js', () => {
4746
import { Component } from '@angular/core';
4847
</textarea>
4948
`,
49+
imports: [HighlightJsDirective],
5050
})
5151
class TestComponent {}

0 commit comments

Comments
 (0)