Skip to content

Commit

Permalink
add test for deep descendent
Browse files Browse the repository at this point in the history
  • Loading branch information
ReactiveRaven committed Aug 9, 2018
1 parent 628f501 commit d430fb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/enzyme-test-suite/test/selector-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ describe('selectors', () => {

expect(wrapper.find('h1')).to.have.lengthOf(2);
expect(wrapper.find('div .inner span .way-inner h1')).to.have.lengthOf(1);
expect(wrapper.find('div div div div')).to.have.lengthOf(1);
expect(wrapper.find('div div div')).to.have.lengthOf(2);
expect(wrapper.find('div span div')).to.have.lengthOf(1);
});

it('direct descendent', () => {
Expand Down

0 comments on commit d430fb5

Please sign in to comment.