Skip to content

Commit

Permalink
remove unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Aug 15, 2024
1 parent dfddc03 commit b1ab060
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions packages/mui-material/src/Link/getTextDecoration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit b1ab060

Please sign in to comment.