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