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:
Rodrigo Ramírez Norambuena 2020-01-19 04:06:21 -03:00
parent 7b3a59455d
commit cce57c7229

View File

@ -15,6 +15,7 @@ describe("Vendors", function () {
var app = null;
before(function () {
process.env.MM_CONFIG_FILE = "tests/configs/env.js";
return helpers.startApplication({
args: ["js/electron.js"]
}).then(function (startedApp) { app = startedApp; });
@ -26,10 +27,6 @@ describe("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");
Object.keys(vendors).forEach(vendor => {
it(`should return 200 HTTP code for vendor "${vendor}"`, function () {