mirror of
https://github.com/aleleba/react-list-ui-library.git
synced 2025-05-01 16:37:48 -06:00
19 lines
587 B
TypeScript
19 lines
587 B
TypeScript
import React from 'react';
|
|
import { render, screen } from '@testing-library/react';
|
|
import { ContainerList } from '@components';
|
|
|
|
describe('Testing ContainerList Component', () => {
|
|
beforeEach(() => {
|
|
// fetchMock.resetMocks();
|
|
render(<ContainerList title='Test Title'/>)
|
|
});
|
|
it('Show Title of Container List', async () => {
|
|
/* fetchMock.mockResponseOnce(JSON.stringify({
|
|
//First Data Fetch
|
|
data: 'data'
|
|
})); */
|
|
const title = screen.getByText('Test Title');
|
|
expect(title).toBeInTheDocument();
|
|
})
|
|
})
|