Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('Should if there is one that cannot be keyed for example array', () => {
const errorNode = (
<div>
{createTextVNode('foo', 'foo')}
{['1', '2']}
</div>
);
expect(() => render(errorNode, container)).toThrowError(
'Inferno Error: Encountered ARRAY in mount, array must be flattened, or normalize used. Location: \n>> Array(1,2)\n>> <div>'
);
});
</div>