How to use the inferno-extras.isDOMinsideVNode function in inferno-extras

To help you get started, we’ve selected a few inferno-extras 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 infernojs / inferno / packages / inferno-extras / __tests__ / extras.spec.jsx View on Github external
it('Should return true if that is the ndoe', () => {
      const vNode = <div>Ok</div>;

      render(
        <div>
          <span>Test</span>
          {vNode}
        </div>,
        container
      );

      expect(isDOMinsideVNode(container.querySelector('#target'), vNode)).toBe(true);
    });
  });

inferno-extras

Collection of utilities for InfernoJS

MIT
Latest version published 11 months ago

Package Health Score

77 / 100
Full package analysis