insomnia/app/__mocks__/electron.js

17 lines
256 B
JavaScript
Raw Normal View History

const RANDOM_STRING = Math.random().toString().replace('.', '');
module.exports = {
remote: {
app: {
getPath (name) {
return `/tmp/insomnia-tests-${RANDOM_STRING}/${name}`;
}
}
2016-11-23 23:42:10 +00:00
},
ipcRenderer: {
on () {
}
}
};