* chore: switch theme to zustand, delete context * chore: switch apps/componenets to consume the hook * chore: update storybook theme usage to use documentElement * chore: dry up theme switcher listener for storybooks * feat: optional theme param to allow toggling * chore: add additional check for matchMedia function * chore: change block explorer test to use light theme as its the default * chore: remove unused headerprops for multisig-signer * chore: remove unused props from theme switcher component * chore: dry up validateTheme func * chore: remove unused props from explorer header test * chore: use new theme switcher in account history container
11 lines
281 B
TypeScript
11 lines
281 B
TypeScript
import { render } from '@testing-library/react';
|
|
|
|
import { ThemeSwitcher } from './theme-switcher';
|
|
|
|
describe('ThemeSwitcher', () => {
|
|
it('should render successfully', () => {
|
|
const { baseElement } = render(<ThemeSwitcher />);
|
|
expect(baseElement).toBeTruthy();
|
|
});
|
|
});
|