I am trying to write unit test cases, for web API call.
Which shows success below :
getProduct("jsonp","https://maps.googleapis.com/maps/api/e
Error Unit Test (jsfiddle) But still its shows "pass"
getProduct("jsonp","https://sdfsdfdfmaps.googleapis.com/maps/api/e
Previous right webapi url : https://maps.googleapis.com/maps/api/elevation/json?locations=39.7391536,-104.9847034&key
Wrong wepapi url : https://sdfsdfdfmaps.googleapis.com/maps/api/elevation/json?locations=39.7391536,-104.9847034&key
Even though the wepapi url is wrong. Test is passing.