Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

How to stub objects and methods not part of a factory

$
0
0

I have a component which makes use of an imported object.

import MyObj from '<MODULE_LOCATION>';

export default Component.extend({ init(){this._super(...args);// some code which make use of the MyObj}});

To test this component I want to stub MyObj so as to have a particular value for it. What is the best way to access the MyObj.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles