fiddle/tests/mocks/electron-fiddle.ts

52 строки
1.8 KiB
TypeScript

export class ElectronFiddleMock {
public addEventListener = jest.fn();
public addModules = jest.fn();
public arch = process.arch;
public blockAccelerators = jest.fn();
public cleanupDirectory = jest.fn();
public confirmQuit = jest.fn();
public createThemeFile = jest.fn();
public deleteUserData = jest.fn();
public downloadVersion = jest.fn();
public fetchVersions = jest.fn();
public getAvailableThemes = jest.fn();
public getElectronTypes = jest.fn();
public getIsPackageManagerInstalled = jest.fn();
public getLatestStable = jest.fn();
public getLocalVersionState = jest.fn();
public getNodeTypes = jest.fn();
public getOldestSupportedMajor = jest.fn();
public getReleaseInfo = jest.fn();
public getReleasedVersions = jest.fn();
public getTemplate = jest.fn();
public getTemplateValues = jest.fn();
public getTestTemplate = jest.fn();
public isReleasedMajor = jest.fn();
public getProjectName = jest.fn();
public getUsername = jest.fn();
public getVersionState = jest.fn();
public macTitlebarClicked = jest.fn();
public onGetFiles = jest.fn();
public openThemeFolder = jest.fn();
public packageRun = jest.fn();
public platform = process.platform;
public pushOutputEntry = jest.fn();
public reloadWindows = jest.fn();
public removeAllListeners = jest.fn();
public removeVersion = jest.fn();
public saveFilesToTemp = jest.fn();
public selectLocalVersion = jest.fn();
public sendReady = jest.fn();
public setNativeTheme = jest.fn();
public setShowMeTemplate = jest.fn();
public showWarningDialog = jest.fn();
public showWindow = jest.fn();
public startFiddle = jest.fn();
public stopFiddle = jest.fn();
public taskDone = jest.fn();
public readThemeFile = jest.fn();
public themePath = '~/.electron-fiddle/themes';
public uncacheTypes = jest.fn();
public unwatchElectronTypes = jest.fn();
}