import React from 'react'; import { cleanup } from '@testing-library/react'; import { render } from '../../utils/theme-render-wrapper'; import { ProgressBar } from './progressbar'; afterEach(cleanup); const topText = 'topText'; const rightText = 'rightText'; const bottomText = 'bottomText'; const leftText = 'leftText'; describe('', () => { it(`Should render ProgressBar without texts`, () => { render(); }); it(`Should render ProgressBar with a texts and props`, () => { const { getByText } = render( ); let elm = getByText(topText); expect(elm).toBeTruthy(); elm = getByText(rightText); expect(elm).toBeTruthy(); elm = getByText(bottomText); expect(elm).toBeTruthy(); elm = getByText(leftText); expect(elm).toBeTruthy(); }); });