import React from 'react';
import Empty from '..';
import mountTest from '../../../tests/shared/mountTest';
import rtlTest from '../../../tests/shared/rtlTest';
import { render } from '../../../tests/utils';
import ConfigProvider from '../../config-provider';
describe('Empty', () => {
mountTest(Empty);
rtlTest(Empty);
it('image size should change', () => {
const { container } = render();
expect(container.querySelector('.ant-empty-image')?.style.height).toBe('20px');
});
it('description can be false', () => {
const { container } = render();
expect(container.querySelector('.ant-empty-description')).toBeFalsy();
});
it('should render in RTL direction', () => {
const { asFragment } = render(
,
);
expect(asFragment().firstChild).toMatchSnapshot();
});
});