mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
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:
parent
bf24ee369f
commit
9d7b0487d5
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user