mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 13:16:16 -08:00
33 lines
575 B
TypeScript
33 lines
575 B
TypeScript
export class ElectronServiceStub {
|
|
ipcRenderer = {
|
|
send: jest.fn(),
|
|
on: jest.fn(),
|
|
removeAllListeners: jest.fn(),
|
|
};
|
|
remote = {
|
|
process: {
|
|
platform: 'linux',
|
|
argv: [0, 1],
|
|
},
|
|
app: {
|
|
getVersion: jest.fn(() => '1.0.0'),
|
|
},
|
|
};
|
|
|
|
isElectron = true;
|
|
|
|
removeAllListeners(type: string) {}
|
|
|
|
getAppVersion() {
|
|
return this.remote.app.getVersion();
|
|
}
|
|
|
|
sendIpcEvent() {}
|
|
|
|
listenOn() {}
|
|
|
|
getAppEnvironment() {
|
|
return 'electron';
|
|
}
|
|
}
|