Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate test #2604

Merged
merged 1 commit into from Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 0 additions & 9 deletions packages/enzyme-test-suite/test/shared/methods/single.jsx
Expand Up @@ -27,15 +27,6 @@ export default function describeSingle({
);
});

it('throws if run on zero nodes', () => {
const wrapper = Wrap(<div />).children();
expect(wrapper).to.have.lengthOf(0);
expect(() => wrapper.single('name!')).to.throw(
Error,
'Method “name!” is meant to be run on 1 node. 0 found instead.',
);
});

it('works with a name', () => {
const wrapper = Wrap(<div />);
wrapper.single('foo', (node) => {
Expand Down