Unit test tsc fixes part 15 (#8104)
* fix ts issues in MPollBody test Signed-off-by: Kerry Archibald <kerrya@element.io> * fix ts issues in PollCreateDialog Signed-off-by: Kerry Archibald <kerrya@element.io> * fix settings components Signed-off-by: Kerry Archibald <kerrya@element.io> * fix DateSeparator Signed-off-by: Kerry Archibald <kerrya@element.io> * fix loosies Signed-off-by: Kerry Archibald <kerrya@element.io> * update tsconfig Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
2bf1d2b287
commit
abc225d3c6
16 changed files with 2663 additions and 3038 deletions
|
@ -28,7 +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";
|
||||
import { mockPlatformPeg } from '../../../test-utils/platform';
|
||||
|
||||
jest.mock('../../../../src/theme');
|
||||
jest.mock('../../../../src/components/views/settings/ThemeChoicePanel', () => ({
|
||||
|
@ -45,7 +45,7 @@ jest.mock('../../../../src/dispatcher/dispatcher', () => ({
|
|||
register: jest.fn(),
|
||||
}));
|
||||
|
||||
PlatformPeg.get = () => ({ overrideBrowserShortcuts: () => false });
|
||||
mockPlatformPeg({ overrideBrowserShortcuts: jest.fn().mockReturnValue(false) });
|
||||
|
||||
describe('<QuickThemeSwitcher />', () => {
|
||||
const defaultProps = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue