ant-design/components/list/__tests__/empty.test.tsx
叶枫 502dac12aa
docs: format code (#48309)
* docs: fix code

* feat: lint

* feat: prettier

* feat: test

* feat: review

* feat: format html

* feat: format html
2024-04-08 14:04:08 +08:00

12 lines
314 B
TypeScript

import React from 'react';
import List from '..';
import { render } from '../../../tests/utils';
describe('List', () => {
it('renders empty list', () => {
const { container } = render(<List dataSource={[]} renderItem={() => <List.Item />} />);
expect(container.firstChild).toMatchSnapshot();
});
});