pref: add test case

This commit is contained in:
zy410419243 2018-12-03 12:13:07 +08:00 committed by 偏右
parent 32d1f2852a
commit e0b3b28e9f
2 changed files with 12232 additions and 0 deletions

View File

@ -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();
});
});