Skip to content

Commit

Permalink
Only keep passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
foaly-nr1 committed Jan 6, 2018
1 parent 09cdcc7 commit 4bb950c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
25 changes: 0 additions & 25 deletions packages/enzyme-test-suite/test/ReactWrapper-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,31 +369,6 @@ describeWithDOM('mount', () => {
const b = <Foo />;
expect(wrapper.contains(b)).to.equal(true);
});

it('should match composite components based on component display name', () => {
function Foo() {
return <div />;
}
const wrapper = mount((
<div>
<Foo />
</div>
));
expect(wrapper.contains('Foo')).to.equal(true);
});

it('should match composite components based on component display name if rendered by function', () => {
function Foo() {
return <div />;
}
const renderStatelessComponent = () => <Foo />;
const wrapper = mount((
<div>
{renderStatelessComponent()}
</div>
));
expect(wrapper.contains('Foo')).to.equal(true);
});
});
});

Expand Down
25 changes: 0 additions & 25 deletions packages/enzyme-test-suite/test/ShallowWrapper-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,31 +322,6 @@ describe('shallow', () => {
const b = <Foo />;
expect(wrapper.contains(b)).to.equal(true);
});

it('should match composite components based on component display name', () => {
function Foo() {
return <div />;
}
const wrapper = shallow((
<div>
<Foo />
</div>
));
expect(wrapper.contains('Foo')).to.equal(true);
});

it('should match composite components based on component display name if rendered by function', () => {
function Foo() {
return <div />;
}
const renderStatelessComponent = () => <Foo />;
const wrapper = shallow((
<div>
{renderStatelessComponent()}
</div>
));
expect(wrapper.contains('Foo')).to.equal(true);
});
});
});

Expand Down

0 comments on commit 4bb950c

Please sign in to comment.