Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('renders down styling if placement is provided', () => {
[
POPPER_PLACEMENTS.BOTTOM,
POPPER_PLACEMENTS.BOTTOM_START,
POPPER_PLACEMENTS.BOTTOM_END
].forEach(placement => {
const { container } = render();
expect(container.firstChild.firstChild).toHaveClass('c-menu--down');
});
});