Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. const component = TestUtils.renderIntoDocument(<MyComponent/>);
  2. const tags = TestUtils.scryRenderedComponentsWithType(component, 'div');
  3. expect(tags.length).toBe(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement