ant-design/components/list/__tests__/empty.test.tsx

12 lines
314 B
TypeScript
Raw Normal View History

import React from 'react';
import List from '..';
2022-06-22 14:57:09 +08:00
import { render } from '../../../tests/utils';
describe('List', () => {
it('renders empty list', () => {
const { container } = render(<List dataSource={[]} renderItem={() => <List.Item />} />);
expect(container.firstChild).toMatchSnapshot();
});
});