mercredi 4 janvier 2017

how to stub a function who returns a promise inside an API?

So I want to hit an endpoint in an API with inside a function, I want to stub the function for my test.

I used sinon alone and sinon + sinon-as-promised

But it always return true whatever I change.

Thanks,

Aucun commentaire:

Enregistrer un commentaire