From dc5c8dbf1651d0b77cf73aca39d95f588b9a355f Mon Sep 17 00:00:00 2001 From: sai6855 Date: Sun, 18 Aug 2024 16:18:15 +0530 Subject: [PATCH 1/2] remove unnecessary test --- packages/mui-material/src/ListItem/ListItem.spec.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/mui-material/src/ListItem/ListItem.spec.tsx b/packages/mui-material/src/ListItem/ListItem.spec.tsx index aa3d9ff870d40f..623e942576ce79 100644 --- a/packages/mui-material/src/ListItem/ListItem.spec.tsx +++ b/packages/mui-material/src/ListItem/ListItem.spec.tsx @@ -13,12 +13,3 @@ function MouseEnterTest() { ; // desired: missing property button ; } - -// https://github.com/mui/material-ui/issues/26469 -const StyledListItem = styled(ListItem)({}); -function StyledTest() { - ; - - // @ts-expect-error - ; // `button` is deprecated in v5, can be removed in v6 -} From 5e378503240f2373e3fcd1eda7d022a7e64cfafa Mon Sep 17 00:00:00 2001 From: sai6855 Date: Sun, 18 Aug 2024 16:21:08 +0530 Subject: [PATCH 2/2] fix --- packages/mui-material/src/ListItem/ListItem.spec.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/mui-material/src/ListItem/ListItem.spec.tsx b/packages/mui-material/src/ListItem/ListItem.spec.tsx index 623e942576ce79..2a20b7fa380dae 100644 --- a/packages/mui-material/src/ListItem/ListItem.spec.tsx +++ b/packages/mui-material/src/ListItem/ListItem.spec.tsx @@ -13,3 +13,9 @@ function MouseEnterTest() { ; // desired: missing property button ; } + +// https://github.com/mui/material-ui/issues/26469 +const StyledListItem = styled(ListItem)({}); +function StyledTest() { + ; +}