Skip to content

Commit

Permalink
does not return the instance
Browse files Browse the repository at this point in the history
  • Loading branch information
jnak committed Feb 26, 2016
1 parent 8b71b1c commit fc38769
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/MyComponent-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ describe('<MyComponent />', () => {
expect(wrapper.find(Subcomponent).length).to.be.equals(2);
//console.log('kikoo', wrapper.ref('last').props());
});

it('should return the instance', () => {
const wrapper = mount(<MyComponent />);
expect(wrapper.find(Subcomponent).instance()).to.be.instanceOf(Subcomponent);
//console.log('kikoo', wrapper.ref('last').props());
});
});

0 comments on commit fc38769

Please sign in to comment.