How to use the inferno-extras.isDOMinsideComponent 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
}

        render() {
          return (
            <div>
              <span>
            </span></div>
          );
        }
      }

      render(, container);

      const target = container.querySelector('#target');

      expect(isDOMinsideComponent(target, instance)).toBe(true);
    });
github infernojs / inferno / packages / inferno-extras / __tests__ / extras.spec.jsx View on Github external
expect(isDOMinsideComponent(target, instances[0])).toBe(false);
      expect(isDOMinsideComponent(target, instances[1])).toBe(true);
      expect(isDOMinsideComponent(target, instances[2])).toBe(false);

      render(
        <div>
          
          
          
        </div>,
        container
      );

      expect(isDOMinsideComponent(target, instances[0])).toBe(false);
      expect(isDOMinsideComponent(target, instances[1])).toBe(false);
      expect(isDOMinsideComponent(target, instances[2])).toBe(false);
    });
  });

inferno-extras

Collection of utilities for InfernoJS

MIT
Latest version published 1 year ago

Package Health Score

68 / 100
Full package analysis