daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top