mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
test: update table.filter test case (#48202)
* fix: 表格列在搜索情况下,国际化失效 #48110 * Update components/table/hooks/useFilter/FilterDropdown.tsx Co-authored-by: afc163 <afc163@gmail.com> Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com> * fix: 补充测试用例 * fix: update table.filter test case --------- Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com> Co-authored-by: l2015 <lingjt@dtdream.com> Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
e665894e3a
commit
15553f54a3
@ -2080,7 +2080,7 @@ describe('Table.filter', () => {
|
||||
});
|
||||
|
||||
it('renders empty element when search not found', () => {
|
||||
jest.spyOn(console, 'error').mockImplementation(() => undefined);
|
||||
const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => undefined);
|
||||
const { container, unmount } = render(
|
||||
createTable({
|
||||
columns: [
|
||||
@ -2115,6 +2115,7 @@ describe('Table.filter', () => {
|
||||
expect(container.querySelector('.ant-empty')).toBeTruthy();
|
||||
|
||||
unmount();
|
||||
errorSpy.mockRestore();
|
||||
});
|
||||
|
||||
it('supports search input in filter menu', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user