mardi 25 avril 2017

how to write a unit test for controller action with promises in emberjs

I have a ember js controller with the following action that takes a model. How do I write a unit test to test the action which returns a promise? deleteUser(model) { model.destroyRecord().then(() => this.transitionToRoute('posts')); }




Aucun commentaire:

Enregistrer un commentaire