mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-04 22:58:03 +00:00
Merge pull request #1893 from roramirez/vendor-fix-test
Fix the vendor_spec test:
This commit is contained in:
commit
5ec9704e7f
@ -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