Remove Piwik support (#8835)
* Remove all mentions of Piwik * Kill off all consumer of the old Piwik Analytics module * Simplify ModalManager interface * i18n * Attempt to fix old e2e tests * Remove unused component * Iterate PR
This commit is contained in:
parent
7d14d15ba6
commit
3c5c2bef6d
142 changed files with 446 additions and 1412 deletions
|
@ -36,7 +36,7 @@ const MXID_PROFILE_STATES = {
|
|||
};
|
||||
|
||||
jest.mock('../../src/Modal', () => ({
|
||||
createTrackedDialog: jest.fn(),
|
||||
createDialog: jest.fn(),
|
||||
}));
|
||||
|
||||
jest.mock('../../src/settings/SettingsStore', () => ({
|
||||
|
@ -54,12 +54,8 @@ const mockPromptBeforeInviteUnknownUsers = (value: boolean) => {
|
|||
};
|
||||
|
||||
const mockCreateTrackedDialog = (callbackName: 'onInviteAnyways'|'onGiveUp') => {
|
||||
mocked(Modal.createTrackedDialog).mockImplementation(
|
||||
(
|
||||
_analyticsAction: string,
|
||||
_analyticsInfo: string,
|
||||
...rest: Parameters<ModalManager['createDialog']>
|
||||
): any => {
|
||||
mocked(Modal.createDialog).mockImplementation(
|
||||
(...rest: Parameters<ModalManager['createDialog']>): any => {
|
||||
rest[1][callbackName]();
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue