refactor tests in 3 categories unit, e2e and electron

This commit is contained in:
Karsten Hassel
2021-09-13 22:28:27 +02:00
parent 60e03777f3
commit 974de179e0
26 changed files with 81 additions and 100 deletions

View File

@@ -1,23 +1,13 @@
const helpers = require("./global-setup");
const fetch = require("node-fetch");
const app = require("../../js/app.js");
describe("ipWhitelist directive configuration", function () {
helpers.setupTimeout(this);
let app = null;
beforeEach(function () {
return helpers
.startApplication({
args: ["js/electron.js"]
})
.then(function (startedApp) {
app = startedApp;
});
beforeAll(function () {
app.start();
});
afterEach(function () {
return helpers.stopApplication(app);
afterAll(function () {
app.stop();
});
describe("Set ipWhitelist without access", function () {