mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
feat(Empty): description prop support undefined/null value to remove description node
This commit is contained in:
parent
5df766fb5b
commit
9d437d39f9
@ -8,7 +8,7 @@ describe('Empty', () => {
|
||||
expect(wrapper.find('.ant-empty-image').props().style.height).toBe(20);
|
||||
});
|
||||
|
||||
it('description can be false', () => {
|
||||
it('description can be undefined or null', () => {
|
||||
const wrapper = mount(<Empty description={undefined} />);
|
||||
expect(wrapper.find('.ant-empty-description').length).toBe(0);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user