4
Observable.combineLatest(userService.getCurrentUser(),someDataService.getAllData(),
    (currentUser, someData) => {
        this.currentUser = currentUser;
        this.someData = someData;
}).subscribe()

I am using this code in my ngOninit function int my component and I need to test it using karma. how do you suggest to do it?

Sagar V
  • 12,158
  • 7
  • 41
  • 68
Gal Yaish
  • 71
  • 3

0 Answers0