insomnia/app/__mocks__/electron.js
Gregory Schier 1ed4b51a01
Convert Multipart Handling to Use Streams (#547)
* Almost done converting multipart processor to use streams

* Implement temp filesystem hack instead
2017-10-29 00:16:34 +02:00

20 lines
336 B
JavaScript

import mkdirp from 'mkdirp';
const RANDOM_STRING = Math.random().toString().replace('.', '');
module.exports = {
remote: {
app: {
getPath (name) {
const dir = `/tmp/insomnia-tests-${RANDOM_STRING}/${name}`;
mkdirp.sync(dir);
return dir;
}
}
},
ipcRenderer: {
on () {
}
}
};