Skip to content

Commit

Permalink
fix test from #42619
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jun 17, 2024
1 parent ae66522 commit a133eb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/mui-styles/src/withStyles/withStyles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Input from '@mui/material/Input';
import { createRenderer, screen } from '@mui/internal-test-utils';
import { isMuiElement } from '@mui/material/utils';
import { createTheme } from '@mui/material/styles';
import { unstable_nested } from '@mui/private-theming';
import StylesProvider from '../StylesProvider';
import createGenerateClassName from '../createGenerateClassName';
import ThemeProvider from '../ThemeProvider';
Expand Down Expand Up @@ -364,13 +365,13 @@ describe('withStyles', () => {
propsTheme = props.theme;
return null;
});
const theme = {};
const theme = { [unstable_nested]: false };
render(
<ThemeProvider theme={theme}>
<StyledComponent />
</ThemeProvider>,
);
expect(propsTheme).to.equal(theme);
expect(propsTheme).to.deep.equal(theme);
});
});
});

0 comments on commit a133eb3

Please sign in to comment.