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 return first of array', () => {
const divOne = <div>;
const children = [divOne];
expect(Children.only(children)).toBe(divOne);
});
</div>
expect(() => Children.only(children)).toThrow();
});