mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
I was always unhappy when maintaining dependency updates to have 3 `package.json` files. This PR moves all deps into the main `package.json` and removes the folders `fonts` and `vendor`. If accepted I will update the docs too. --------- Co-authored-by: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com>
23 lines
619 B
JavaScript
23 lines
619 B
JavaScript
const helpers = require("./helpers/global-setup");
|
|
|
|
describe("Vendors", () => {
|
|
beforeAll(async () => {
|
|
await helpers.startApplication("tests/configs/default.js");
|
|
});
|
|
afterAll(async () => {
|
|
await helpers.stopApplication();
|
|
});
|
|
|
|
describe("Get list vendors", () => {
|
|
const vendors = require(`${__dirname}/../../js/vendor.js`);
|
|
|
|
Object.keys(vendors).forEach((vendor) => {
|
|
it(`should return 200 HTTP code for vendor "${vendor}"`, async () => {
|
|
const urlVendor = `http://localhost:8080/${vendors[vendor]}`;
|
|
const res = await fetch(urlVendor);
|
|
expect(res.status).toBe(200);
|
|
});
|
|
});
|
|
});
|
|
});
|