How to use the @zendeskgarden/react-tooltips.POPPER_PLACEMENTS.BOTTOM_END function in @zendeskgarden/react-tooltips

To help you get started, we’ve selected a few @zendeskgarden/react-tooltips examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zendeskgarden / react-components / packages / menus / src / views / MenuView.spec.js View on Github external
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');
      });
    });