jeudi 19 novembre 2020

Angular unit test factory

In my AppModule I have a provider that uses a factory

{
  provide: APP_INITIALIZER,
  useFactory: (myService: MyService) => () => myService.load().toPromise(),
  deps: [MyService],
  multi: true
},

My problem is how do I test this?

Aucun commentaire:

Enregistrer un commentaire