co2offset
Version:
Greenhouse Gas Accounting - ISO14064
26 lines (21 loc) • 463 B
JavaScript
import electron from "electron";
import { Application } from "spectron";
const beforeEach = function() {
this.timeout(10000);
this.app = new Application({
path: electron,
args: ["."],
chromeDriverArgs: ["remote-debugging-port=9222"]
});
return this.app.start();
};
const afterEach = function() {
if (this.app && this.app.isRunning()) {
return this.app.stop();
}
return undefined;
};
export default {
beforeEach,
afterEach
};