Friday, September 27, 2019

Why can't I seem to stub a contract in a Jasmine/Karma unit test in my Angular application?

I keep getting errors like:

TypeError: this.myContract.GetHotDogs is not a function

 
 

What is going wrong? Help me! Alright, in the providers for the test make sure you are using useClass instead of useValue as that makes a world of difference.

No comments:

Post a Comment