diff --git a/packages/mui-system/src/Box/Box.spec.tsx b/packages/mui-system/src/Box/Box.spec.tsx index 4e81f4bd530ea4..c65cf5d4bf25a8 100644 --- a/packages/mui-system/src/Box/Box.spec.tsx +++ b/packages/mui-system/src/Box/Box.spec.tsx @@ -48,7 +48,7 @@ function ComponentPropTest() { function ThemeCallbackTest() { theme.palette.primary.main }} />; - ({ background: theme.palette.primary.main }) }} />; + ({ background: theme.palette.primary.main }) }} />; ({ background: theme.palette.primary.main }) }} />; theme.breakpoints.values.sm} />; } diff --git a/packages/mui-system/src/createBox.spec.tsx b/packages/mui-system/src/createBox.spec.tsx index 9c929efee61912..2c327e7635dc5a 100644 --- a/packages/mui-system/src/createBox.spec.tsx +++ b/packages/mui-system/src/createBox.spec.tsx @@ -50,7 +50,7 @@ function ComponentPropTest() { function ThemeCallbackTest() { theme.palette.primary.main }} />; - ({ background: theme.palette.primary.main }) }} />; + ({ background: theme.palette.primary.main }) }} />; ({ background: theme.palette.primary.main }) }} />; theme.breakpoints.values.sm} />; } diff --git a/packages/mui-system/src/styleFunctionSx/styleFunctionSx.test.js b/packages/mui-system/src/styleFunctionSx/styleFunctionSx.test.js index bb54fdcf3d7fd2..64c6389fefca20 100644 --- a/packages/mui-system/src/styleFunctionSx/styleFunctionSx.test.js +++ b/packages/mui-system/src/styleFunctionSx/styleFunctionSx.test.js @@ -276,12 +276,12 @@ describe('styleFunctionSx', () => { const result = styleFunctionSx({ theme, sx: { - ':hover': (t) => ({ background: t.palette.primary.main }), + '&:hover': (t) => ({ background: t.palette.primary.main }), }, }); // Test the order - expect(result).to.deep.equal({ ':hover': { background: 'rgb(0, 0, 255)' } }); + expect(result).to.deep.equal({ '&:hover': { background: 'rgb(0, 0, 255)' } }); }); it('works on nested selectors', () => {