Skip to content

Commit

Permalink
[Tests] remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-pettersson committed Feb 14, 2024
1 parent 146467c commit 62ea473
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/enzyme-test-suite/test/shared/methods/single.jsx
Original file line number Diff line number Diff line change
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

0 comments on commit 62ea473

Please sign in to comment.