Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jun 15, 2022
1 parent 9f2d7cf commit af6c851
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/mui-material/src/styles/CssVarsProvider.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ describe('[Material UI] CssVarsProvider', () => {

expect(screen.getByTestId('opacity').textContent).to.equal(
JSON.stringify({
placeholder: 'var(--md-opacity-placeholder)',
inputPlaceholder: 'var(--md-opacity-inputPlaceholder)',
inputTouchBottomLine: 'var(--md-opacity-inputTouchBottomLine)',
switchTrackDisabled: 'var(--md-opacity-switchTrackDisabled)',
switchTrack: 'var(--md-opacity-switchTrack)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ describe('experimental_extendTheme', () => {
it('should provide the default opacities', () => {
const theme = extendTheme();
expect(theme.colorSchemes.light.opacity).to.deep.equal({
placeholder: 0.42,
inputPlaceholder: 0.42,
inputTouchBottomLine: 0.42,
switchTrackDisabled: 0.12,
switchTrack: 0.38,
});
expect(theme.colorSchemes.dark.opacity).to.deep.equal({
placeholder: 0.5,
inputPlaceholder: 0.5,
inputTouchBottomLine: 0.7,
switchTrackDisabled: 0.2,
switchTrack: 0.3,
Expand All @@ -220,22 +220,22 @@ describe('experimental_extendTheme', () => {
colorSchemes: {
light: {
opacity: {
placeholder: 1,
inputPlaceholder: 1,
},
},
dark: {
opacity: {
placeholder: 0.2,
inputPlaceholder: 0.2,
},
},
},
});
expect(theme.colorSchemes.light.opacity).to.deep.include({
placeholder: 1,
inputPlaceholder: 1,
inputTouchBottomLine: 0.42,
});
expect(theme.colorSchemes.dark.opacity).to.deep.include({
placeholder: 0.2,
inputPlaceholder: 0.2,
inputTouchBottomLine: 0.7,
});
});
Expand Down

0 comments on commit af6c851

Please sign in to comment.