1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00

Make everything use the KeyBindingManager (#7907)

This commit is contained in:
Šimon Brandner
2022-02-28 17:05:52 +01:00
committed by GitHub
parent 5f8441216c
commit df591ee835
37 changed files with 529 additions and 277 deletions

View File

@@ -28,6 +28,7 @@ import { findById } from '../../../test-utils';
import { SettingLevel } from '../../../../src/settings/SettingLevel';
import dis from '../../../../src/dispatcher/dispatcher';
import { Action } from '../../../../src/dispatcher/actions';
import PlatformPeg from "../../../../src/PlatformPeg";
jest.mock('../../../../src/theme');
jest.mock('../../../../src/components/views/settings/ThemeChoicePanel', () => ({
@@ -44,6 +45,8 @@ jest.mock('../../../../src/dispatcher/dispatcher', () => ({
register: jest.fn(),
}));
PlatformPeg.get = () => ({ overrideBrowserShortcuts: () => false });
describe('<QuickThemeSwitcher />', () => {
const defaultProps = {
requestClose: jest.fn(),