Any one can explain how to create Stubs for service mocking for Angular Karma testing. Please provide any complete example or link. After creating the stub, how to write the test cases using stub data. Please explain.
Spy
Vs stub
which one is best practice. Please suggest. Thanks in advance.