Change hooks for vendor_spec:

Use the hooks before and after in the vendor_spec instead of use beforeAll and
afterAll in the e2e test to prevent failure in CI.
This commit is contained in:
Rodrigo Ramírez Norambuena 2017-07-25 20:20:51 -04:00
parent bf24ee369f
commit 9d7b0487d5

View File

@ -6,21 +6,21 @@ const expect = require("chai").expect;
const describe = global.describe; const describe = global.describe;
const it = global.it; const it = global.it;
const beforeEach = global.beforeEach; const before = global.before;
const afterEach = global.afterEach; const after = global.after;
describe("Vendors", function () { describe("Vendors", function () {
helpers.setupTimeout(this); helpers.setupTimeout(this);
var app = null; var app = null;
beforeEach(function () { before(function () {
return helpers.startApplication({ return helpers.startApplication({
args: ["js/electron.js"] args: ["js/electron.js"]
}).then(function (startedApp) { app = startedApp; }) }).then(function (startedApp) { app = startedApp; })
}); });
afterEach(function () { after(function () {
return helpers.stopApplication(app); return helpers.stopApplication(app);
}); });