Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Jun 30, 2024
1 parent e775b63 commit 76df173
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/mui-material/src/styles/responsiveFontSize.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import {
responsiveFontSizes,
extendTheme,
experimental_extendTheme,
createTheme,
Theme,
CssVarsTheme,
} from '@mui/material/styles';
import { expectType } from '@mui/types';

const cssVarsTheme = responsiveFontSizes(extendTheme());
expectType<Omit<Theme, 'applyStyles'> & CssVarsTheme, typeof cssVarsTheme>(cssVarsTheme);
const cssVarsTheme = responsiveFontSizes(experimental_extendTheme());
expectType<Omit<Theme, 'palette' | 'applyStyles'> & CssVarsTheme, typeof cssVarsTheme>(
cssVarsTheme,
);

const theme = responsiveFontSizes(createTheme());
expectType<Theme, typeof theme>(theme);

0 comments on commit 76df173

Please sign in to comment.