Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed Aug 24, 2023
1 parent d5a68ba commit d21f47e
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions packages/mui-system/src/Box/Box.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,32 +280,32 @@ describe('<Box />', () => {
expect(getByTestId('regular-box')).to.have.class('MuiBox-root');
});

describe('prop: maxWidth', () => {
it('should resolve breakpoints with custom units', function test() {
const isJSDOM = /jsdom/.test(window.navigator.userAgent);

if (isJSDOM) {
this.skip();
}

const theme = createTheme({
breakpoints: {
unit: 'rem',
values: {
xs: 10,
},
// describe('prop: maxWidth', () => {
it('should resolve breakpoints with custom units', function test() {
const isJSDOM = /jsdom/.test(window.navigator.userAgent);

if (isJSDOM) {
this.skip();
}

const theme = createTheme({
breakpoints: {
unit: 'rem',
values: {
xs: 10,
},
});
},
});

const { container } = render(
<ThemeProvider theme={theme}>
<Box maxWidth="xs" />
</ThemeProvider>,
);
const { container } = render(
<ThemeProvider theme={theme}>
<Box maxWidth="xs" />
</ThemeProvider>,
);

expect(container.firstChild).toHaveComputedStyle({
maxWidth: '10rem',
});
expect(container.firstChild).toHaveComputedStyle({
maxWidth: '10rem',
});
});
// });
});

0 comments on commit d21f47e

Please sign in to comment.