outlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskypefacebook-workplace
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
664 B
38 lines
664 B
|
|
var Application = require('spectron').Application; |
|
var electron = require('electron-prebuilt'); |
|
|
|
/** |
|
* The RamboxTestHelper contains common stuff for tests. |
|
*/ |
|
module.exports = function() { |
|
|
|
var self = this; |
|
|
|
/** |
|
* Makes the Rambox Application available. |
|
* |
|
* @type {Application} |
|
*/ |
|
self.app = null; |
|
|
|
/** |
|
* Starts Rambox from '/electron/main.js/'. |
|
*/ |
|
beforeEach(function() { |
|
self.app = new Application({ |
|
path: electron, |
|
args: [__dirname + '/../../electron/main.js'] |
|
}); |
|
return self.app.start(); |
|
}); |
|
|
|
/** |
|
* Stops Rambox. |
|
*/ |
|
afterEach(function() { |
|
if (self.app && self.app.isRunning()) { |
|
return self.app.stop() |
|
} |
|
}); |
|
};
|
|
|