mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
1ed4b51a01
* Almost done converting multipart processor to use streams * Implement temp filesystem hack instead
20 lines
336 B
JavaScript
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 () {
|
|
|
|
}
|
|
}
|
|
};
|