mirror of
https://github.com/responsively-org/responsively-app
synced 2024-11-10 06:44:13 +00:00
24 lines
458 B
JavaScript
24 lines
458 B
JavaScript
window.electron = {
|
|
ipcRenderer: {
|
|
sendMessage: jest.fn(),
|
|
on: jest.fn(),
|
|
once: jest.fn(),
|
|
invoke: jest.fn(),
|
|
removeListener: jest.fn(),
|
|
removeAllListeners: jest.fn(),
|
|
},
|
|
store: {
|
|
set: jest.fn(),
|
|
get: jest.fn(),
|
|
},
|
|
};
|
|
|
|
global.IntersectionObserver = jest.fn(() => ({
|
|
root: null,
|
|
rootMargin: '',
|
|
thresholds: [],
|
|
observe: jest.fn(),
|
|
unobserve: jest.fn(),
|
|
disconnect: jest.fn(),
|
|
takeRecords: jest.fn(),
|
|
}));
|