chore(tests): tests simplified

This commit is contained in:
Alexey Kasyanchuk
2018-01-31 20:34:50 +03:00
parent cb39438b26
commit d21e093ac7
3 changed files with 6 additions and 10 deletions

View File

@ -2,18 +2,18 @@ import electron from "electron";
import { Application } from "spectron";
const beforeEach = function() {
this.timeout(10000);
this.timeout(15000);
this.app = new Application({
path: electron,
args: ["."],
startTimeout: 10000,
waitTimeout: 10000
startTimeout: 15000,
waitTimeout: 15000
});
return this.app.start();
};
const afterEach = function() {
this.timeout(10000);
this.timeout(15000);
if (this.app && this.app.isRunning()) {
return this.app.stop();
}