mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
18 lines
687 B
TypeScript
18 lines
687 B
TypeScript
import { renderWithProviders, screen } from '~/test-utils/test-helper';
|
|
import { untouchedFile } from './__fixture__/file-list';
|
|
import { FileRow } from '../FileRow';
|
|
import { completedFile } from './__fixture__/file-list';
|
|
|
|
test('should render basic title (ready)', () => {
|
|
renderWithProviders(<FileRow id="file://ready" file={untouchedFile} />);
|
|
|
|
expect(screen.getAllByTestId('file-row')).toHaveLength(1);
|
|
expect(screen.getByTestId('audio-meta-song-name')).toHaveTextContent('ready');
|
|
});
|
|
|
|
test('should render basic title (done)', () => {
|
|
renderWithProviders(<FileRow id="file://done" file={completedFile} />);
|
|
|
|
expect(screen.getAllByTestId('file-row')).toHaveLength(1);
|
|
});
|