@@ -49,12 +58,12 @@ jest.mock('@mui/material', () => {
),
ListItemIcon: ({children, ...props}) =>
{children},
ListItemText: ({children, ...props}) =>
{children},
- Dialog: ({children, open, maxWidth, fullWidth, ...props}) =>
+ Dialog: ({children, open, maxWidth, fullWidth, slotProps, ...props}) =>
open ?
{children}
: null,
DialogTitle: ({children, ...props}) =>
{children}
,
DialogContent: ({children, ...props}) =>
{children}
,
DialogActions: ({children, ...props}) =>
{children}
,
- Snackbar: ({children, open, autoHideDuration, ...props}) => {
+ Snackbar: ({children, open, autoHideDuration, anchorOrigin, ...props}) => {
return open ?
{children}
: null;
},
Alert: ({children, severity, ...props}) => (
@@ -67,7 +76,6 @@ jest.mock('@mui/material', () => {
type="checkbox"
checked={checked}
onChange={onChange}
- style={{...sx}}
{...props}
/>
),
@@ -75,13 +83,12 @@ jest.mock('@mui/material', () => {
),
- TextField: ({label, value, onChange, disabled, multiline, rows, id, ...props}) => {
+ TextField: ({label, value, onChange, disabled, multiline, rows, id, fullWidth, helperText, slotProps, ...props}) => {
const inputId = id || `textfield-${label}`;
return (
@@ -104,25 +111,24 @@ jest.mock('@mui/material', () => {
),
CircularProgress: () =>
Loading...
,
Box: ({children, sx, ...props}) => (
-
+
{children}
),
- Typography: ({children, sx, ...props}) =>
{children},
+ Typography: ({children, sx, ...props}) =>
{children},
FiberManualRecordIcon: ({sx, ...props}) => (
-
+
),
Tooltip: ({children, title, ...props}) => (
{children}
),
- Button: ({children, onClick, disabled, variant, component, htmlFor, sx, ...props}) => (
+ Button: ({children, onClick, disabled, variant, component, htmlFor, sx, startIcon, ...props}) => (