From b1ab060666301501dac308ca808138d2c2f5c1dd Mon Sep 17 00:00:00 2001 From: siriwatknp Date: Thu, 15 Aug 2024 12:01:29 +0700 Subject: [PATCH] remove unnecessary tests --- .../src/Link/getTextDecoration.test.js | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/packages/mui-material/src/Link/getTextDecoration.test.js b/packages/mui-material/src/Link/getTextDecoration.test.js index cf15c993b1d48c..142b16a9499ad0 100644 --- a/packages/mui-material/src/Link/getTextDecoration.test.js +++ b/packages/mui-material/src/Link/getTextDecoration.test.js @@ -6,21 +6,6 @@ describe('getTextDecoration', () => { describe('without theme.vars', () => { const theme = createTheme(); - it('deprecated color', () => { - expect(getTextDecoration({ theme, ownerState: { color: 'textPrimary' } })).to.equal( - 'rgba(0, 0, 0, 0.4)', - ); - expect(getTextDecoration({ theme, ownerState: { color: 'textSecondary' } })).to.equal( - 'rgba(0, 0, 0, 0.4)', - ); - expect(getTextDecoration({ theme, ownerState: { color: 'primary' } })).to.equal(null); - expect(getTextDecoration({ theme, ownerState: { color: 'secondary' } })).to.equal(null); - expect(getTextDecoration({ theme, ownerState: { color: 'error' } })).to.equal(null); - expect(getTextDecoration({ theme, ownerState: { color: 'info' } })).to.equal(null); - expect(getTextDecoration({ theme, ownerState: { color: 'success' } })).to.equal(null); - expect(getTextDecoration({ theme, ownerState: { color: 'warning' } })).to.equal(null); - }); - it('system color', () => { expect(getTextDecoration({ theme, ownerState: { color: 'primary.main' } })).to.equal( 'rgba(25, 118, 210, 0.4)', @@ -73,21 +58,6 @@ describe('getTextDecoration', () => { }, }, }; - // in the application, the value will be CSS variable: `rgba(var(--the-color-channel) / 0.4)` - it('deprecated color', () => { - expect(getTextDecoration({ theme, ownerState: { color: 'textPrimary' } })).to.equal( - 'rgba(var(--palette-text-primaryChannel) / 0.4)', - ); - expect(getTextDecoration({ theme, ownerState: { color: 'textSecondary' } })).to.equal( - 'rgba(var(--palette-text-secondaryChannel) / 0.4)', - ); - expect(getTextDecoration({ theme, ownerState: { color: 'primary' } })).to.equal(null); - expect(getTextDecoration({ theme, ownerState: { color: 'secondary' } })).to.equal(null); - expect(getTextDecoration({ theme, ownerState: { color: 'error' } })).to.equal(null); - expect(getTextDecoration({ theme, ownerState: { color: 'info' } })).to.equal(null); - expect(getTextDecoration({ theme, ownerState: { color: 'success' } })).to.equal(null); - expect(getTextDecoration({ theme, ownerState: { color: 'warning' } })).to.equal(null); - }); it('system color', () => { expect(getTextDecoration({ theme, ownerState: { color: 'primary.main' } })).to.equal(