diff --git a/tests/e2e/vendor_spec.js b/tests/e2e/vendor_spec.js index 834c90d6..addbe335 100644 --- a/tests/e2e/vendor_spec.js +++ b/tests/e2e/vendor_spec.js @@ -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 () {