Hi there

I am trying to test AppComponent, particularly ngOnInit(). In the spec 
file, ngOnInit() does get called and the test passes. However, "test2" and 
"testService.tester" functions do not get called in the test environment. 
These two function do get called when I run the app itself. I've read the 
docs multiple times and the code seems to be exactly the same, but still 
cannot get it working. Thanks for help.

Plunker link: https://plnkr.co/edit/zgtnxNL0zWVoHLo7fvRD?p=preview

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to