budibase/packages/server/tests/all.spec.js

14 lines
477 B
JavaScript
Raw Normal View History

2019-06-14 18:01:01 +02:00
const app = require("./testApp")();
const authenticateMaster = require("./authenticate");
2019-06-28 23:59:27 +02:00
const createNewApp = require("./createNewApp");
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
2019-07-07 10:03:37 +02:00
describe("authenticateMaster", () => authenticateMaster(app, "_master", () => app.masterAuth));
2019-06-28 23:59:27 +02:00
describe("createNewApp", () => createNewApp(app));
2019-07-07 10:03:37 +02:00
describe("authenticateTestApp", () => authenticateMaster(app, "testApp", () => app.user1_instance1));
2019-06-14 18:01:01 +02:00