Test fixes

This commit is contained in:
Dean 2024-05-02 16:45:25 +01:00
parent 83eeddf422
commit 56fd28eb54
4 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@ describe("check the applications endpoints", () => {
describe("check the tables endpoints", () => { describe("check the tables endpoints", () => {
it("should allow retrieving tables through search", async () => { it("should allow retrieving tables through search", async () => {
await config.createApp("new app 1") await config.createApp({ appName: "new app 1" })
table = await config.upsertTable() table = await config.upsertTable()
const res = await makeRequest("post", "/tables/search") const res = await makeRequest("post", "/tables/search")
expect(res).toSatisfyApiSpec() expect(res).toSatisfyApiSpec()

View File

@ -11,7 +11,7 @@ describe("run", () => {
beforeAll(async () => { beforeAll(async () => {
await config.init() await config.init()
app = await config.createApp("testApp") app = await config.createApp({ appName: "testApp" })
screen = await config.createScreen() screen = await config.createScreen()
}) })

View File

@ -22,7 +22,7 @@ describe("syncApps", () => {
expect(usageDoc.usageQuota.apps).toEqual(3) expect(usageDoc.usageQuota.apps).toEqual(3)
// create an extra app to test the migration // create an extra app to test the migration
await config.createApp("quota-test") await config.createApp({ appName: "quota-test" })
// migrate // migrate
await syncApps.run() await syncApps.run()

View File

@ -29,7 +29,7 @@ describe("syncRows", () => {
await config.createRow() await config.createRow()
}) })
// app 2 // app 2
const app2 = await config.createApp("second-app") const app2 = await config.createApp({ appName: "second-app" })
await context.doInAppContext(app2.appId, async () => { await context.doInAppContext(app2.appId, async () => {
await config.createTable() await config.createTable()
await config.createRow() await config.createRow()