vendredi 12 août 2016

in ember, how do I unit test controller action that sends another action?

I have following controller

MyController = Ember.Controller.extend({ 
  actions: {
    doSomething: function(param1, param2) {
      this.send('actionName', param1, param2);
    }
  }
});

Is there a way to write an unit test that verifies that this controller will bubble up this action?




Aucun commentaire:

Enregistrer un commentaire