diff --git a/packages/design/src/table/__tests__/__snapshots__/index.test.tsx.snap b/packages/design/src/table/__tests__/__snapshots__/index.test.tsx.snap index 05531056f..9a49cddee 100644 --- a/packages/design/src/table/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/design/src/table/__tests__/__snapshots__/index.test.tsx.snap @@ -437,6 +437,123 @@ exports[`Table > ConfigProvider pagination should work 1`] = ` `; +exports[`Table > default empty should work 1`] = ` +
+
+
+
+
+
+ + + + + + + + + + + + + + +
+ Name + + Age + + Address +
+
+
+ + + Simple Empty + + + + + + + + + +
+
+ No data +
+
+
+
+
+
+
+
+
+`; + exports[`Table > default pagination should work 1`] = `
{ expect(asFragment().firstChild).toMatchSnapshot(); }); + it('default empty should work', () => { + const { container, asFragment } = render(); + expect(container.querySelector('.ant-empty-image')).toBeTruthy(); + expect(container.querySelector('.ant-empty-description')).toBeTruthy(); + expect(asFragment().firstChild).toMatchSnapshot(); + }); + it('ConfigProvider pagination should work', () => { const { container, asFragment } = render( (props: TableProps, ref: React.Ref) { const { getPrefixCls, locale, table } = useContext(ConfigProvider.ConfigContext); const { batchOperationBar, ...restLocale } = { - ...enUS.Table, - ...locale?.Table, ...customLocale, batchOperationBar: { ...enUS.Table?.batchOperationBar,