vendredi 2 septembre 2016

Jasmine spyOn function that is not a method of an object

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.

if (X) {
  callMe('hello');
}

Aucun commentaire:

Enregistrer un commentaire