2020-02-03 10:24:25 +01:00
|
|
|
const app = require("./testApp")()
|
|
|
|
const authenticateMaster = require("./authenticate")
|
|
|
|
const createNewApp = require("./createNewApp")
|
|
|
|
const multipleInstances = require("./multipleInstances")
|
|
|
|
const serveui = require("./serveui")
|
2019-06-14 18:01:01 +02:00
|
|
|
|
2019-06-19 23:05:53 +02:00
|
|
|
beforeAll(async () => await app.start())
|
2019-06-14 18:01:01 +02:00
|
|
|
|
2019-06-19 23:05:53 +02:00
|
|
|
afterAll(async () => await app.destroy())
|
2019-06-14 18:01:01 +02:00
|
|
|
|
2020-02-03 10:24:25 +01:00
|
|
|
describe("authenticateMaster", () =>
|
|
|
|
authenticateMaster(app, "_master", "masterOwner"))
|
|
|
|
describe("createNewApp", () => createNewApp(app))
|
|
|
|
describe("authenticateTestApp", () =>
|
|
|
|
authenticateMaster(app, "testApp", "testAppUser1"))
|
|
|
|
describe("multipleInstances", () => multipleInstances(app))
|
|
|
|
describe("serveUi", () => serveui(app))
|