Skip to content

Commit

Permalink
Restore styled.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Aug 23, 2021
1 parent be99606 commit e30e28e
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions packages/material-ui-system/src/styled.test.js
Expand Up @@ -308,30 +308,6 @@ describe('styled', () => {
});
});

it('variants should not be skipped if overridesResolver is not defined', () => {
const TestSlot = styled('div', {
shouldForwardProp: (prop) => prop !== 'variant' && prop !== 'size' && prop !== 'sx',
name: 'MuiTest',
slot: 'Root',
})`
width: 800px;
height: 300px;
`;

const { container } = render(
<ThemeProvider theme={theme}>
<TestSlot variant="rect" size="large">
Test
</TestSlot>
</ThemeProvider>,
);

expect(container.firstChild).toHaveComputedStyle({
width: '400px',
height: '400px',
});
});

it('variants should respect skipVariantsResolver if defined', () => {
const TestSlot = styled('div', {
shouldForwardProp: (prop) => prop !== 'variant' && prop !== 'size' && prop !== 'sx',
Expand Down

0 comments on commit e30e28e

Please sign in to comment.