Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const component = TestUtils.renderIntoDocument(<MyComponent/>);
- const tags = TestUtils.scryRenderedComponentsWithType(component, 'div');
- expect(tags.length).toBe(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement