lundi 2 novembre 2015

In Ember, how do I create a DS.AdapterPopulatedRecordArray for my unit test?

In my route's model hook, I find all posts. In my template, I pass the model directly to my component which then takes the data, filters and sorts it to figure out a final result which is then displayed. The problem is that the component receives an instance of DS.AdapterPopulatedRecordArray which is the resolved value of this.store.findAll('post').

How do I fake out that DS.AdapterPopulatedRecordArray in my component test?




Aucun commentaire:

Enregistrer un commentaire