Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2023-07-04 16:57:08 +02:00
parent 315e6b6b81
commit 033618b5bd
@@ -18,12 +18,14 @@ import { Theme } from '@mui/material/styles';
import { transformV5ComponentThemesToV4 } from './overrides';
describe('transformV5ComponentThemesToV4', () => {
// TODO: Create actual v5 Theme to avoid missing properties in test
const mockTheme = {
palette: {
primary: {
main: 'red',
},
},
spacing: (n: number) => `${n * 8}px`,
} as unknown as Theme;
it('transforms empty component themes', () => {
expect(transformV5ComponentThemesToV4(mockTheme)).toEqual({