Guest User

Untitled

a guest
Aug 10th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. How can I mock a method in qmock
  2. var methodToTest = function(response, fnOnSuccess) {
  3. if (response == null || response.toString().indexOf("...") != -1) {
  4. //do something
  5. return;
  6. }
  7. else if (fnOnSuccess!= null)
  8. fnOnSuccess(response);
  9. }
Add Comment
Please, Sign In to add comment