Be the first user to complete this post
|
Add to List |
How to return a value from a jasmine spy
Returning a value from your jasmine spy is extremely simple. Just do the following
jasmine.createSpy().and.returnValue(value);
Also Read:
- Automated testing of webcam / video feeds in webRTC application
- Run a single test in jasmine
- Testing promise sequence using mocha, chai, chai-as-promised, sinon