mardi 22 mai 2018

Ember: Mocking RecordArray

For acceptance tests of components that involve peekAll, I've stubbed the store service with the peekAll method that returns an array of Ember.Object, by which I'm able to retrieve the records and display.

But save, set and get methods aren't working, as peekAll in it's original form returns a RecordArray.

How do I return a RecordArray from the store stub?




Aucun commentaire:

Enregistrer un commentaire