2017-02-26 19:58:48 -06:00
|
|
|
const path = require('path');
|
|
|
|
|
2017-02-26 20:47:23 -06:00
|
|
|
// use config provided by test framework
|
2017-02-26 19:58:48 -06:00
|
|
|
function pathToConfigDir() {
|
2017-02-26 20:47:23 -06:00
|
|
|
return path.join(__dirname, '/../fixtures');
|
2017-02-26 19:58:48 -06:00
|
|
|
}
|
|
|
|
const app = {
|
|
|
|
getAppPath: pathToConfigDir,
|
2017-02-26 20:47:23 -06:00
|
|
|
getPath: function(type) {
|
|
|
|
if (type === 'exe') {
|
|
|
|
return path.join(pathToConfigDir(), '/Symphony.exe');
|
|
|
|
}
|
|
|
|
return pathToConfigDir();
|
|
|
|
}
|
2017-02-26 19:58:48 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
require: jest.genMockFunction(),
|
|
|
|
match: jest.genMockFunction(),
|
|
|
|
app: app,
|
|
|
|
remote: jest.genMockFunction(),
|
|
|
|
dialog: jest.genMockFunction()
|
|
|
|
};
|