jeudi 10 mars 2016

Stubbing child components in Ember component test

Say I have a deeply nested component structure and I don't want to stub the dependencies (mainly services and ajax calls) of all the child components and their child components. Is there a way to inject a stub like Ember.Component.create({}) into the container to replace the real one for that test. It seems like it should be possible but I can't seem to figure out the syntax or find it documented anywhere.

Aucun commentaire:

Enregistrer un commentaire