Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
render() {
return (
<div>
<span>
</span></div>
);
}
}
render(, container);
const target = container.querySelector('#target');
expect(isDOMinsideComponent(target, instance)).toBe(true);
});
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);
});
});