- I would like to complete coverage in my module but can seem to find a way of referencing/spyOn the
customElements.defineinside the bootstrap.
bonus:
help with the useFactory coverage would be much appreciated.
this test pass so far.
it('initializes', () => {
const module: AppModule = TestBed.inject(AppModule);
expect(module).toBeTruthy();
});
it('ngDoBootstrap', () => {
const module: AppModule = TestBed.inject(AppModule);
spyOn(module, "ngDoBootstrap");
module.ngDoBootstrap();
expect(module.ngDoBootstrap).toHaveBeenCalled();
});
](https://i.stack.imgur.com/so1Qs.png)

[RESOLVED]