Closed Adam-Kernig closed 4 years ago
example testbed
beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ AppBarComponent ], imports: [ HighlightJsModule ] }) .compileComponents(); }));
@Adam-Kernig Have you fix it? If so, how?
@diogobernardelli Apologies mate I ended up not using this package and writing one myself, it turned out to be quicker doing so
@diogobernardelli You can try define hljs
in typing.d.ts
.
When importing HighlightJsModule into a component.spec file for the test bed a test shows this error: AddRemoveModalsComponent should create FAILED ReferenceError: hljs is not defined
How can I define this? I cant seem to find any docs relating to unit testing with this package