sheepsteak / react-shallow-testutils

Replacement for TestUtils when using React's shallow rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Readme shows incorrect examples for findAll...

mdrx-io opened this issue · comments

Please correct me if I'm wrong, but the examples like this:

expect(findAll(renderer.getRenderOutput(), (component) => component.type === 'span')).toBe(3);

... should be like this:

expect(findAll(renderer.getRenderOutput(), (component) => component.type === 'span').length).toBe(3);