You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/components/Tip/TextTip/TextTip.test.tsx

12 lines
332 B

import { render } from '@testing-library/react';
import { TextTip } from './TextTip';
test('should display a TextTip with children', async () => {
const children = 'test text tip';
const { findByText } = render(<TextTip>{children}</TextTip>);
const heading = await findByText(children);
expect(heading).toBeTruthy();
});