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

18 lines
658 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-07-11 10:43:47 +02:00
const multipleInstances = require("./multipleInstances");
2019-07-19 09:13:39 +02:00
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
2019-07-11 10:43:47 +02:00
describe("authenticateMaster", () => authenticateMaster(app, "_master", "masterOwner"));
2019-06-28 23:59:27 +02:00
describe("createNewApp", () => createNewApp(app));
2019-07-11 10:43:47 +02:00
describe("authenticateTestApp", () => authenticateMaster(app, "testApp", "testAppUser1"));
describe("multipleInstances", () => multipleInstances(app));
2019-07-19 09:13:39 +02:00
describe("serveUi", () => serveui(app));
2019-06-14 18:01:01 +02:00