mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-16 22:26:16 -08:00
24 lines
448 B
TypeScript
24 lines
448 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(),
|
|
}
|
|
};
|
|
|
|
getAppVersion() {
|
|
this.remote.app.getVersion();
|
|
}
|
|
|
|
sendIpcEvent() {
|
|
this.ipcRenderer.send();
|
|
}
|
|
} |