Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How can I mock a method in qmock
- var methodToTest = function(response, fnOnSuccess) {
- if (response == null || response.toString().indexOf("...") != -1) {
- //do something
- return;
- }
- else if (fnOnSuccess!= null)
- fnOnSuccess(response);
- }
Add Comment
Please, Sign In to add comment