import { cleanup } from '@testing-library/react'; import { _palette } from '../@styles/theme-provider'; import { render } from '../../utils/theme-render-wrapper'; import { TextWithBG } from './text-with-bg'; afterEach(cleanup); const content = 'content'; const tooltipText = 'tooltipText'; describe('', () => { it(`should render successfully`, () => { const { baseElement } = render(); expect(baseElement).toBeTruthy(); }); it(`should render custom color tags`, () => { const { baseElement } = render( <> ); expect(baseElement).toBeTruthy(); }); it(`should render with different severities`, () => { const { baseElement } = render( <> ); expect(baseElement).toBeTruthy(); }); it(`should render with content and tooltip`, () => { const { queryByText } = render(); const elm = queryByText(content); expect(elm?.innerHTML).toBe(content); }); });