From 9057a52a6a229ef710bd324882b9d2be1a49b01f Mon Sep 17 00:00:00 2001 From: Diego Andai Date: Wed, 4 Dec 2024 12:32:07 -0300 Subject: [PATCH] [material-ui][Box] Fix `component` prop test (#44651) --- packages/mui-material/src/Box/Box.spec.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/mui-material/src/Box/Box.spec.tsx b/packages/mui-material/src/Box/Box.spec.tsx index 2935a971275357..e7023ac8072f15 100644 --- a/packages/mui-material/src/Box/Box.spec.tsx +++ b/packages/mui-material/src/Box/Box.spec.tsx @@ -40,4 +40,9 @@ function ColorTest() { />; } -expectType; +function ComponentTest() { + return ; +} + +expectType('span'); +expectType(ComponentTest);