From e30e28ea9f6d876db1e8765528d75966b07dc1b6 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Mon, 23 Aug 2021 16:48:00 +0200 Subject: [PATCH] Restore styled.test.js --- .../material-ui-system/src/styled.test.js | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/packages/material-ui-system/src/styled.test.js b/packages/material-ui-system/src/styled.test.js index 67a1ea82d2c098..34743c8bf6b4aa 100644 --- a/packages/material-ui-system/src/styled.test.js +++ b/packages/material-ui-system/src/styled.test.js @@ -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( - - - Test - - , - ); - - 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',