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 up styling if placement is provided', () => {
[POPPER_PLACEMENTS.TOP, POPPER_PLACEMENTS.TOP_START, POPPER_PLACEMENTS.TOP_END].forEach(
placement => {
const { container } = render();
expect(container.firstChild.firstChild).toHaveClass('c-menu--up');
}
);
});