mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-30 04:59:32 +00:00
Fix the vendor_spec test:
This change set after startApplication the configuration to run this test. The previous statement when e2e are running using --recursive the MM_CONFIG_FILE was setting by the test running before this one.
This commit is contained in:
parent
7b3a59455d
commit
cce57c7229
@ -15,6 +15,7 @@ describe("Vendors", function () {
|
|||||||
var app = null;
|
var app = null;
|
||||||
|
|
||||||
before(function () {
|
before(function () {
|
||||||
|
process.env.MM_CONFIG_FILE = "tests/configs/env.js";
|
||||||
return helpers.startApplication({
|
return helpers.startApplication({
|
||||||
args: ["js/electron.js"]
|
args: ["js/electron.js"]
|
||||||
}).then(function (startedApp) { app = startedApp; });
|
}).then(function (startedApp) { app = startedApp; });
|
||||||
@ -26,10 +27,6 @@ describe("Vendors", function () {
|
|||||||
|
|
||||||
describe("Get list vendors", function () {
|
describe("Get list vendors", function () {
|
||||||
|
|
||||||
before(function () {
|
|
||||||
process.env.MM_CONFIG_FILE = "tests/configs/env.js";
|
|
||||||
});
|
|
||||||
|
|
||||||
var vendors = require(__dirname + "/../../vendor/vendor.js");
|
var vendors = require(__dirname + "/../../vendor/vendor.js");
|
||||||
Object.keys(vendors).forEach(vendor => {
|
Object.keys(vendors).forEach(vendor => {
|
||||||
it(`should return 200 HTTP code for vendor "${vendor}"`, function () {
|
it(`should return 200 HTTP code for vendor "${vendor}"`, function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user