2019-06-15 04:01:01 +12:00
|
|
|
const app = require("./testApp")();
|
|
|
|
const authenticateMaster = require("./authenticate");
|
2019-06-29 09:59:27 +12:00
|
|
|
const createNewApp = require("./createNewApp");
|
2019-06-15 04:01:01 +12:00
|
|
|
|
2019-06-20 09:05:53 +12:00
|
|
|
beforeAll(async () => await app.start())
|
2019-06-15 04:01:01 +12:00
|
|
|
|
2019-06-20 09:05:53 +12:00
|
|
|
afterAll(async () => await app.destroy())
|
2019-06-15 04:01:01 +12:00
|
|
|
|
2019-07-07 20:03:37 +12:00
|
|
|
describe("authenticateMaster", () => authenticateMaster(app, "_master", () => app.masterAuth));
|
2019-06-29 09:59:27 +12:00
|
|
|
describe("createNewApp", () => createNewApp(app));
|
2019-07-07 20:03:37 +12:00
|
|
|
describe("authenticateTestApp", () => authenticateMaster(app, "testApp", () => app.user1_instance1));
|
2019-06-15 04:01:01 +12:00
|
|
|
|
|
|
|
|