I want to test whether a save/update is happened in DB(back-end) of my ember application using stubbing.
I've gone through some articles on internet and could figure out below code to include in my test case.
stubbedModel = sinon.stub(controller, '***', function() {
return null;
});
stubbedModel will return null if no save/update happened.
Can some please refer some link or article on this.
Aucun commentaire:
Enregistrer un commentaire