How to use the inferno-test-utils.findVNodeWithType function in inferno-test-utils

To help you get started, we’ve selected a few inferno-test-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jhsware / inferno-bootstrap / __test__ / PopperContent.TOFIX-spec.jsx View on Github external
it('should render a PopperTargetHelper', () => {
    const renderedTree = renderIntoContainer(Yo!, container);

    // expect(wrapper.containsMatchingElement()).toBe(true);
    expect(findVNodeWithType(renderedTree, PopperTargetHelper)).toBeDefined();
    
  });
github jhsware / inferno-bootstrap / __test__ / PopperContent.TOFIX-spec.jsx View on Github external
it('should render a Manager by default', () => {
    const renderedTree = renderIntoContainer(Yo!, container);

    const node = findVNodeWithType(renderedTree, Manager)
    expect(node).toBeDefined()
  });
github jhsware / inferno-bootstrap / __test__ / PopperContent.TOFIX-spec.jsx View on Github external
it('should render an Arrow in the Popper when isOpen is true', () => {
    const renderedTree = renderIntoContainer(Yo!, container);

    expect(findVNodeWithType(renderedTree, Arrow)).toBeDefined();
  });