Skip to content

Commit

Permalink
[Tests] tweak descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 13, 2018
1 parent 40a2ce3 commit f31c525
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions packages/enzyme-test-suite/test/ReactWrapper-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1120,32 +1120,32 @@ describeWithDOM('mount', () => {
</div>
);

it('should find descendant span inside React.Fragment', () => {
it('finds descendant span inside React.Fragment', () => {
const wrapper = mount(<NestedFragmentComponent />);
expect(wrapper.find('.container span')).to.have.lengthOf(4);
});

it('should not find nonexistent p inside React.Fragment', () => {
it('does not find nonexistent p inside React.Fragment', () => {
const wrapper = mount(<NestedFragmentComponent />);
expect(wrapper.find('.container p')).to.have.lengthOf(0);
});

it('should find direct child span inside React.Fragment', () => {
it('finds direct child span inside React.Fragment', () => {
const wrapper = mount(<NestedFragmentComponent />);
expect(wrapper.find('.container > span')).to.have.lengthOf(4);
});

it('should handle adjacent sibling selector inside React.Fragment', () => {
it('handles adjacent sibling selector inside React.Fragment', () => {
const wrapper = mount(<NestedFragmentComponent />);
expect(wrapper.find('.container span + div')).to.have.lengthOf(1);
});

it('should handle general sibling selector inside React.Fragment', () => {
it('handles general sibling selector inside React.Fragment', () => {
const wrapper = mount(<NestedFragmentComponent />);
expect(wrapper.find('.container div ~ span')).to.have.lengthOf(2);
});

itIf(is('>= 16.4.1'), 'should handle fragments with no content', () => {
itIf(is('>= 16.4.1'), 'handles fragments with no content', () => {
const EmptyFragmentComponent = () => (
<div className="container">
<React.Fragment>
Expand Down
10 changes: 5 additions & 5 deletions packages/enzyme-test-suite/test/ShallowWrapper-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -977,12 +977,12 @@ describe('shallow', () => {
</div>
);

it('should find descendant span inside React.Fragment', () => {
it('finds descendant span inside React.Fragment', () => {
const wrapper = shallow(<NestedFragmentComponent />);
expect(wrapper.find('.container span')).to.have.lengthOf(4);
});

it('should not find nonexistent p inside React.Fragment', () => {
it('finds nonexistent p inside React.Fragment', () => {
const wrapper = shallow(<NestedFragmentComponent />);
expect(wrapper.find('.container p')).to.have.lengthOf(0);
});
Expand All @@ -992,17 +992,17 @@ describe('shallow', () => {
expect(wrapper.find('.container > span')).to.have.lengthOf(4);
});

it('should handle adjacent sibling selector inside React.Fragment', () => {
it('handles adjacent sibling selector inside React.Fragment', () => {
const wrapper = shallow(<NestedFragmentComponent />);
expect(wrapper.find('.container span + div')).to.have.lengthOf(1);
});

it('should handle general sibling selector inside React.Fragment', () => {
it('handles general sibling selector inside React.Fragment', () => {
const wrapper = shallow(<NestedFragmentComponent />);
expect(wrapper.find('.container div ~ span')).to.have.lengthOf(2);
});

it('should handle fragments with no content', () => {
it('handles fragments with no content', () => {
const EmptyFragmentComponent = () => (
<div className="container">
<Fragment>
Expand Down

0 comments on commit f31c525

Please sign in to comment.