How do I spyOn a function that is not a method of an object. In my situation, callMe is also NOT on the window object - it is a dependency that is loaded via angular.
callMe
window
if (X) { callMe('hello'); }
Aucun commentaire:
Enregistrer un commentaire