Jasmine Spies.and.stub method
For the term, you can look at wikipedia : http://en.wikipedia.org/wiki/Test_stub In a nutshell it’s a “fake” object that you can control that replaces a “real” object in your code. For the function, what I understand is that and.stub() removes the effect of and.callThrough() on a spy. When you call and.callThrough, the spy acts as a … Read more