In my app I have this initializer which injects the store into all services:
export function initialize(container, application) {
application.inject('service', 'store', 'store:main');
}
export default {
name: 'inject-store-in-services',
initialize: initialize
};
My problem is that when I run unit tests, services don’t have the store
property. So my question: is there a way to achieve what my initializer does but inside a unit test context?
Aucun commentaire:
Enregistrer un commentaire