mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
pref: add test case
This commit is contained in:
parent
32d1f2852a
commit
e0b3b28e9f
@ -453,4 +453,19 @@ describe('Table.filter', () => {
|
||||
wrapper.find('.ant-dropdown-trigger').first().simulate('click');
|
||||
expect(wrapper.find('.ant-input').instance().value).toBe('');
|
||||
});
|
||||
|
||||
it('render title correctly', () => {
|
||||
const title = (
|
||||
<div>
|
||||
<div title="childTitle">testTitle</div>
|
||||
</div>
|
||||
);
|
||||
const wrapper = mount(createTable({
|
||||
columns: [{
|
||||
...column,
|
||||
title,
|
||||
}],
|
||||
}));
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user