Merge pull request #1893 from roramirez/vendor-fix-test

Fix the vendor_spec test:
This commit is contained in:
Michael Teeuw 2020-01-22 15:22:29 +01:00 committed by GitHub
commit 5ec9704e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 () {