release-2021-11-18 packages/core-plugin-api/src/apis/definitions/AppThemeApi.ts:45

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
This commit is contained in:
Colton Padden
2021-12-15 09:18:17 -05:00
parent c24bae0085
commit 5d6684f0df
6 changed files with 10 additions and 31 deletions
@@ -21,6 +21,8 @@ import {
wrapInTestApp,
} from '@backstage/test-utils';
import { lightTheme } from '@backstage/theme';
import { ThemeProvider } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import { fireEvent } from '@testing-library/react';
import React from 'react';
import { UserSettingsThemeToggle } from './UserSettingsThemeToggle';
@@ -30,7 +32,11 @@ const mockTheme: AppTheme = {
id: 'light-theme',
title: 'Mock Theme',
variant: 'light',
theme: lightTheme,
Provider: ({ children }) => (
<ThemeProvider theme={lightTheme}>
<CssBaseline>{children}</CssBaseline>
</ThemeProvider>
),
};
const apiRegistry = TestApiRegistry.from([