mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
22 lines
528 B
JavaScript
22 lines
528 B
JavaScript
const fs = require("fs");
|
|
const helpers = require("./helpers/global-setup");
|
|
|
|
describe("templated config with port variable", () => {
|
|
beforeAll(async () => {
|
|
await helpers.startApplication("tests/configs/port_variable.js");
|
|
});
|
|
afterAll(async () => {
|
|
await helpers.stopApplication();
|
|
try {
|
|
fs.unlinkSync("tests/configs/port_variable.js");
|
|
} catch (err) {
|
|
// do nothing
|
|
}
|
|
});
|
|
|
|
it("should return 200", async () => {
|
|
const res = await fetch("http://localhost:8090");
|
|
expect(res.status).toBe(200);
|
|
});
|
|
});
|