lundi 12 septembre 2016

How to mock $timeout service using sinon?

I need to create unit test for a method in Angular controller that utilizes $timeout service. The problem is that I was told not to use inject. So I have to mock $timeout myself. How can I do it using sinon?

Aucun commentaire:

Enregistrer un commentaire