mardi 17 mai 2016

How to mock _super() method in ember unit test

I am writing Unit test for route. I have two route one is parent and other is child both contains model() function(hook). When i am writing a child route test cases there is a call for parent(_super

model: function (model) {
....
        this._super(model);
}

Is there any way to mock this super(model function) in unit test to prevent it.




Aucun commentaire:

Enregistrer un commentaire