My component looks like this:
export default Ember.Component.extend({
register: function () {
this.get( 'parentView' ).addItem( this );
}.on( 'init' )
});
How do I init the parentView so that the following test works?
test('it renders', function() {
expect(2);
// creates the component instance
var component = this.subject();
equal(component._state, 'preRender');
// appends the component to the page
this.append();
equal(component._state, 'inDOM');
});